diff options
author | Jonathan Gray <jsg@cvs.openbsd.org> | 2017-10-19 06:52:56 +0000 |
---|---|---|
committer | Jonathan Gray <jsg@cvs.openbsd.org> | 2017-10-19 06:52:56 +0000 |
commit | e2069ab5c732a21135db9f1c22c7d89633a1b3e8 (patch) | |
tree | 580568fd4ce47dc5875b6fde8bf40f7556c89a40 | |
parent | ed5a0b934aa8036416e66838b9eed1013ae5127f (diff) |
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; |