mirror of
https://github.com/yarrick/iodine.git
synced 2024-12-22 21:33:33 +02:00
Fix NULL pointer deref
This commit is contained in:
parent
2d90aaaf30
commit
58dac78bd8
1 changed files with 4 additions and 2 deletions
|
@ -1589,8 +1589,10 @@ tunnel_bind(int bind_fd, int dns_fd)
|
|||
|
||||
/* Get sockaddr from id */
|
||||
fw_query_get(id, &query);
|
||||
if (!query && debug >= 2) {
|
||||
fprintf(stderr, "Lost sender of id %u, dropping reply\n", (id & 0xFFFF));
|
||||
if (!query) {
|
||||
if (debug >= 2) {
|
||||
fprintf(stderr, "Lost sender of id %u, dropping reply\n", (id & 0xFFFF));
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue