Commit 3d46e05f authored by Kai Vehmanen's avatar Kai Vehmanen

Fixed bug in STUN DNS queries. Reported on the maemo-devel list on 2006-10-09.

darcs-hash:20061109162050-7659e-4851e72fdddfcf29e72ef76d23b21c08376fd573.gz
parent 940008bb
......@@ -88,7 +88,7 @@ static void priv_sres_cb(stun_dns_lookup_t *self,
/* note: picks the first ones (sort puts records with most
* weight at start */
for (i = 0; answer[i] != NULL; i++) {
for (i = 0; answer && answer[i] != NULL; i++) {
sres_srv_record_t *rr = (sres_srv_record_t *) answer[i]->sr_srv;
if (rr && rr->srv_record && rr->srv_record->r_type == sres_type_srv) {
const char *tcp_name = STUN_SRV_SERVICE_TCP;
......
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