]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
- Fixed unused return value warnings in contrib/fastrpz.patch for
authorWouter Wijngaards <wouter@nlnetlabs.nl>
Tue, 11 Sep 2018 13:19:55 +0000 (13:19 +0000)
committerWouter Wijngaards <wouter@nlnetlabs.nl>
Tue, 11 Sep 2018 13:19:55 +0000 (13:19 +0000)
  asprintf.

git-svn-id: file:///svn/unbound/trunk@4891 be551aaa-1e26-0410-a405-d3ace91eadb9

contrib/fastrpz.patch
doc/Changelog

index b80eeb2bb927c3e4f5f5fac6a764cea5e4b490cf..8f079f2725d473407baa735287b5de73af340d5e 100644 (file)
@@ -3269,7 +3269,7 @@ Index: unbound-1.7.0~rc1/util/configparser.y
 +
 +              OUTYY(("P(rpz_zone:%s)\n", $2));
 +              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)
 +                      yyerror("out of memory");
 +              free(old_cstr);
@@ -3282,7 +3282,7 @@ Index: unbound-1.7.0~rc1/util/configparser.y
 +
 +              OUTYY(("P(rpz_option:%s)\n", $2));
 +              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)
 +                      yyerror("out of memory");
 +              free(old_cstr);
index 279a44e15b3384e7b9a5702a1695809f7c2dea29..883c32870c4d71bcdcb7aaff67285b4651b957fa 100644 (file)
@@ -1,3 +1,7 @@
+11 September 2018: Wouter
+       - Fixed unused return value warnings in contrib/fastrpz.patch for
+         asprintf.
+
 10 September 2018: Wouter
        - 1.8.1 in svn trunk. (changes from 4,5,.. sep apply).
        - iana port update.