Fix NULL pointer deref

This commit is contained in:
Frank Denis 2013-05-20 10:30:43 -07:00
parent 2d90aaaf30
commit 58dac78bd8

View File

@ -1589,8 +1589,10 @@ tunnel_bind(int bind_fd, int dns_fd)
/* Get sockaddr from id */ /* Get sockaddr from id */
fw_query_get(id, &query); fw_query_get(id, &query);
if (!query && debug >= 2) { if (!query) {
if (debug >= 2) {
fprintf(stderr, "Lost sender of id %u, dropping reply\n", (id & 0xFFFF)); fprintf(stderr, "Lost sender of id %u, dropping reply\n", (id & 0xFFFF));
}
return 0; return 0;
} }