CID 350473: Null pointer dereferences (FORWARD_NULL) in bin/dig/dighost.c: 2904 in udp_ready()
/bin/dig/dighost.c: 2904 in udp_ready()
2898
2899 if (eresult == ISC_R_CANCELED || query->canceled) {
2900 dig_lookup_t *l = query->lookup;
2901
2902 debug("in cancel handler");
2903 query_detach(&query);
CID 350473: Null pointer dereferences (FORWARD_NULL)
Dereferencing null pointer "query".
2904 if (!query->canceled) {
2905 cancel_lookup(l);
2906 }
2907 lookup_detach(&l);
2908 return;
2909 } else if (eresult != ISC_R_SUCCESS) {
Edited by Ondřej Surý