Skip to content

Commit 589c982

Browse files
committed
fix build warning
warning: address of array 'rr->srv_record' will always evaluate to 'true'
1 parent 9c7443c commit 589c982

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libsofia-sip-ua/stun/stun_dns.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ static void priv_sres_cb(stun_dns_lookup_t *self,
9292

9393
for (i = 0; answer && answer[i] != NULL; i++) {
9494
sres_srv_record_t *rr = (sres_srv_record_t *) answer[i]->sr_srv;
95-
if (rr && rr->srv_record && rr->srv_record->r_type == sres_type_srv) {
95+
if (rr && rr->srv_record->r_type == sres_type_srv) {
9696
const char *tcp_name = STUN_SRV_SERVICE_TCP;
9797
const char *udp_name = STUN_SRV_SERVICE_UDP;
9898
if ((self->stun_state & stun_dns_tls) == 0 &&

0 commit comments

Comments
 (0)