Merge pull request #2055 from dragos-oancea/mod_sofia-cov3

[mod_sofia] coverity CID 1468496 (Unchecked return value)
This commit is contained in:
Andrey Volk 2023-04-17 23:29:03 +03:00 committed by GitHub
commit 77a5fa3b0d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 1 deletions

View 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;
}