Commit 5cc9dc3e authored by Pekka Pessi's avatar Pekka Pessi

nta.c: check for su_zalloc() result

MeeGo Coverity issue CID#7660
parent 6b128e5b
......@@ -10687,7 +10687,10 @@ void outgoing_answer_a(sres_context_t *orq, sres_query_t *q,
else if (found)
results = &result;
for (i = j = 0; answers && answers[i]; i++) {
if (results == NULL)
found = 0;
for (i = j = 0; results && answers && answers[i]; i++) {
char addr[SU_ADDRSIZE];
sres_a_record_t const *a = answers[i]->sr_a;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment