diff --git a/lib/roken/resolve.c b/lib/roken/resolve.c index 4e0bb26c5..eb8b1c2f6 100644 --- a/lib/roken/resolve.c +++ b/lib/roken/resolve.c @@ -647,8 +647,7 @@ dns_srv_order(struct dns_reply *r) /* find the last record with the same priority and count the sum of all weights */ for(sum = 0, tt = ss; tt < srvs + num_srv; tt++) { - if(*tt == NULL) - continue; + assert(*tt != NULL); if((*tt)->u.srv->priority != (*ss)->u.srv->priority) break; sum += (*tt)->u.srv->weight;