ddnet/src/engine
bors[bot] b445862628
Merge #3888
3888: Send server info request for ping with different token r=Jupeyy a=heinrich5991

Thanks to @Jupeyy for figuring out this bug.

Previously, the client would send the request for server info and the
server info ping packet with the same token, making the answer
indistinguishable from each other. Fix this by generating a token that
won't collide.

Fixes #3862.

<!-- What is the motivation for the changes of this pull request -->

## Checklist

- [x] Tested the change ingame
- [ ] Provided screenshots if it is a visual change
- [ ] Tested in combination with possibly related configuration options
- [ ] Written a unit test if it works standalone, system.c especially
- [ ] Considered possible null pointers and out of bounds array indexing
- [ ] Changed no physics that affect existing maps
- [ ] Tested the change with [ASan+UBSan or valgrind's memcheck](https://github.com/ddnet/ddnet/#using-addresssanitizer--undefinedbehavioursanitizer-or-valgrinds-memcheck) (optional)


Co-authored-by: heinrich5991 <heinrich5991@gmail.com>
2021-06-09 15:36:38 +00:00
..
client Merge #3888 2021-06-09 15:36:38 +00:00
docs Fix a woopsie in snapshot docs 2021-05-29 11:07:33 +02:00
external Add client-side HTTP server info 2021-05-14 01:00:39 +02:00
server Add PINGEX and PONGEX messages that are correlatable 2021-05-14 01:01:08 +02:00
shared Remove unused variables 2021-06-09 05:35:28 +02:00
antibot.h Run clang-format 2020-09-26 21:50:15 +02:00
client.h Differenciate better between window modes 2021-03-30 10:07:41 +02:00
config.h Port CConfig API from the upstream (0.7.5) 2021-01-10 17:10:19 +03:00
console.h More colors from chat in console 2021-03-08 01:20:28 +01:00
demo.h Run clang-format 2020-09-26 21:50:15 +02:00
discord.h Put the Discord stuff into its own file 2021-01-31 10:17:21 +01:00
editor.h Adopt upstream refactoring: Mark several functions as 'const' 2021-02-23 18:26:16 +03:00
engine.h Add serverbrowser ping cache 2021-05-14 01:00:41 +02:00
friends.h Run clang-format 2020-09-26 21:50:15 +02:00
ghost.h Update ghost format to v6: Replace CRC with SHA256 2020-10-14 17:08:58 +02:00
graphics.h Merge #3804 2021-05-22 09:56:09 +00:00
input.h Init input handling in UI Ex 2021-05-31 12:27:04 +02:00
kernel.h Run clang-format 2020-09-26 21:50:15 +02:00
keys.h Use scancodes instead of keycodes for input (fixes #796, please test) 2017-07-21 19:53:49 +02:00
map.h Run clang-format 2020-09-26 21:50:15 +02:00
masterserver.h Adopt upstream refactoring: Mark several functions as 'const' 2021-02-23 18:26:16 +03:00
message.h Run clang-format 2020-09-26 21:50:15 +02:00
server.h Make spectators stay specs on map changed 2021-02-23 19:36:52 +03:00
serverbrowser.h Allow pinging favorites directly, leaking your IP address 2021-05-14 01:01:09 +02:00
sound.h Modulize skins, particles, emoticons and game 2020-10-09 09:07:19 +02:00
sqlite.h Add sqlite3 to the client 2021-05-14 01:00:41 +02:00
steam.h Allow joining and inviting others via Steam friend list while ingame 2020-09-06 17:08:38 +02:00
storage.h Give tests their own playground IStorage 2021-05-14 01:00:41 +02:00
textrender.h Merge branch 'master' into pr_color_picker 2020-12-13 20:40:33 +03:00
updater.h Overhauled job system 2017-11-23 15:47:38 +01:00
uuid.h Make sure headers compile standalone 2020-09-26 21:50:27 +02:00
warning.h Add block list for drivers 2020-11-05 21:07:14 +01:00