]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
[mod_sofia] coverity CID 1468496 (Unchecked return value) 2055/head
authorDragos Oancea <dragos@signalwire.com>
Mon, 10 Apr 2023 15:22:45 +0000 (18:22 +0300)
committerDragos Oancea <dragos@signalwire.com>
Mon, 17 Apr 2023 11:55:13 +0000 (14:55 +0300)
src/mod/endpoints/mod_sofia/sip-dig.c

index e89f5aef440126f1124d6a5a3cafb3cf17ec258a..c9a6f5b463454435a4d5edad60661c0d1cf9d255 100644 (file)
@@ -815,8 +815,12 @@ sres_record_t ** dig_addr_simple(struct dig *dig,
                                                                uint16_t type) 
 {
        sres_record_t **answers = NULL;
+       int error;
 
-       sres_blocking_query(dig->sres, type, host, 0, &answers);
+       error = sres_blocking_query(dig->sres, type, host, 0, &answers);
+       if (error < 0) {
+               return NULL;
+       }
 
        return answers;
 }