Skip to content

Commit

Permalink
dns_cache: init value str
Browse files Browse the repository at this point in the history
Fixes Coverity CID 40917
  • Loading branch information
razvancrainea committed Oct 24, 2016
1 parent 752e69f commit b10cc36
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions modules/dns_cache/dns_cache.c
Expand Up @@ -831,6 +831,8 @@ int put_dnscache_value(char *name,int r_type,void *record,int rdata_len,
LM_ERR("failed to create key\n");
return -1;
}
value.len = 0;
value.s = 0;

if (failure) {
/* just set value as failure marker, and push to back-end
Expand Down

0 comments on commit b10cc36

Please sign in to comment.