mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-02-09 01:06:00 +00:00
[mod_sofia] coverity CID 1468496 (Unchecked return value)
This commit is contained in:
parent
bc00add254
commit
aab9839678
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user