Fix NULL pointer deref
This commit is contained in:
parent
2d90aaaf30
commit
58dac78bd8
|
@ -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 New Issue