diff options
author | 2015-08-26 02:04:43 +0000 | |
---|---|---|
committer | 2015-08-26 02:04:43 +0000 | |
commit | a7b475e648ba90c659f770a85cb53cccffbe9029 (patch) | |
tree | a17d1a18217560a4b75f97b0feee8f1f4012785a | |
parent | Kbind 3: The Legend Continues! (diff) | |
download | wireguard-openbsd-a7b475e648ba90c659f770a85cb53cccffbe9029.tar.xz wireguard-openbsd-a7b475e648ba90c659f770a85cb53cccffbe9029.zip |
fix a use after free in an error path found with afl
ok yasuoka@
-rw-r--r-- | usr.sbin/radiusd/parse.y | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/radiusd/parse.y b/usr.sbin/radiusd/parse.y index 1d4fa6d0277..bd8e1355dc1 100644 --- a/usr.sbin/radiusd/parse.y +++ b/usr.sbin/radiusd/parse.y @@ -212,9 +212,9 @@ prefix : STRING '/' NUMBER { if ((gai_errno = getaddrinfo($1, NULL, &hints, &res)) != 0) { - free($1); yyerror("Could not parse the address: %s: %s", $1, gai_strerror(gai_errno)); + free($1); YYERROR; } free($1); |