diff options
author | 2017-10-19 06:52:55 +0000 | |
---|---|---|
committer | 2017-10-19 06:52:55 +0000 | |
commit | 3ac7339a99f73eefb82b778bc1e35477008c11e8 (patch) | |
tree | f76095ca912a32ea9add067a7acb28b53ebc99dc | |
parent | fix a use after free and a memory leak in error paths (diff) | |
download | wireguard-openbsd-3ac7339a99f73eefb82b778bc1e35477008c11e8.tar.xz wireguard-openbsd-3ac7339a99f73eefb82b778bc1e35477008c11e8.zip |
don't try to print uninitialised memory as a string in error paths
ok deraadt@ claudio@
-rw-r--r-- | usr.sbin/bgpd/parse.y | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/bgpd/parse.y b/usr.sbin/bgpd/parse.y index 1841961ed48..0015d259e90 100644 --- a/usr.sbin/bgpd/parse.y +++ b/usr.sbin/bgpd/parse.y @@ -1,4 +1,4 @@ -/* $OpenBSD: parse.y,v 1.315 2017/08/21 14:41:22 phessler Exp $ */ +/* $OpenBSD: parse.y,v 1.316 2017/10/19 06:52:55 jsg Exp $ */ /* * Copyright (c) 2002, 2003, 2004 Henning Brauer <henning@openbsd.org> @@ -3181,7 +3181,7 @@ parseextcommunity(struct filter_extcommunity *c, char *t, char *s) switch (type) { case -1: if ((p = strchr(s, ':')) == NULL) { - yyerror("Bad ext-community %s is %s", s, errstr); + yyerror("Bad ext-community %s", s); return (-1); } *p++ = '\0'; @@ -3239,7 +3239,7 @@ parseextcommunity(struct filter_extcommunity *c, char *t, char *s) else if (strcmp(s, "not-found") == 0) c->data.ext_opaq = EXT_COMMUNITY_OVS_NOTFOUND; else { - yyerror("Bad ext-community %s is %s", s, errstr); + yyerror("Bad ext-community %s", s); return (-1); } break; |