mirror of
https://github.com/NLnetLabs/unbound.git
synced 2025-12-20 23:00:56 -05:00
- Fixed unused return value warnings in contrib/fastrpz.patch for
asprintf. git-svn-id: file:///svn/unbound/trunk@4891 be551aaa-1e26-0410-a405-d3ace91eadb9
This commit is contained in:
parent
d8f890a43a
commit
00982fc3db
2 changed files with 6 additions and 2 deletions
|
|
@ -3269,7 +3269,7 @@ Index: unbound-1.7.0~rc1/util/configparser.y
|
||||||
+
|
+
|
||||||
+ OUTYY(("P(rpz_zone:%s)\n", $2));
|
+ OUTYY(("P(rpz_zone:%s)\n", $2));
|
||||||
+ old_cstr = cfg_parser->cfg->rpz_cstr;
|
+ old_cstr = cfg_parser->cfg->rpz_cstr;
|
||||||
+ asprintf(&new_cstr, "%s\nzone %s", old_cstr?old_cstr:"", $2);
|
+ (void)asprintf(&new_cstr, "%s\nzone %s", old_cstr?old_cstr:"", $2);
|
||||||
+ if(!new_cstr)
|
+ if(!new_cstr)
|
||||||
+ yyerror("out of memory");
|
+ yyerror("out of memory");
|
||||||
+ free(old_cstr);
|
+ free(old_cstr);
|
||||||
|
|
@ -3282,7 +3282,7 @@ Index: unbound-1.7.0~rc1/util/configparser.y
|
||||||
+
|
+
|
||||||
+ OUTYY(("P(rpz_option:%s)\n", $2));
|
+ OUTYY(("P(rpz_option:%s)\n", $2));
|
||||||
+ old_cstr = cfg_parser->cfg->rpz_cstr;
|
+ old_cstr = cfg_parser->cfg->rpz_cstr;
|
||||||
+ asprintf(&new_cstr, "%s\n%s", old_cstr ? old_cstr : "", $2);
|
+ (void)asprintf(&new_cstr, "%s\n%s", old_cstr ? old_cstr : "", $2);
|
||||||
+ if(!new_cstr)
|
+ if(!new_cstr)
|
||||||
+ yyerror("out of memory");
|
+ yyerror("out of memory");
|
||||||
+ free(old_cstr);
|
+ free(old_cstr);
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,7 @@
|
||||||
|
11 September 2018: Wouter
|
||||||
|
- Fixed unused return value warnings in contrib/fastrpz.patch for
|
||||||
|
asprintf.
|
||||||
|
|
||||||
10 September 2018: Wouter
|
10 September 2018: Wouter
|
||||||
- 1.8.1 in svn trunk. (changes from 4,5,.. sep apply).
|
- 1.8.1 in svn trunk. (changes from 4,5,.. sep apply).
|
||||||
- iana port update.
|
- iana port update.
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue