diff options
author | 2012-09-26 09:49:43 +0000 | |
---|---|---|
committer | 2012-09-26 09:49:43 +0000 | |
commit | a6e588a9def8968011130468b8e384fe4efdc45c (patch) | |
tree | eb969097b32c3a849530c03f34400ba18149768f | |
parent | log final user and method used for local deliveries. (diff) | |
download | wireguard-openbsd-a6e588a9def8968011130468b8e384fe4efdc45c.tar.xz wireguard-openbsd-a6e588a9def8968011130468b8e384fe4efdc45c.zip |
fix double free() issue in error paths
ok eric@ gilles@
-rw-r--r-- | usr.sbin/smtpd/parse.y | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/usr.sbin/smtpd/parse.y b/usr.sbin/smtpd/parse.y index 440608d9e66..daf9895fee4 100644 --- a/usr.sbin/smtpd/parse.y +++ b/usr.sbin/smtpd/parse.y @@ -1,4 +1,4 @@ -/* $OpenBSD: parse.y,v 1.100 2012/09/17 20:19:18 eric Exp $ */ +/* $OpenBSD: parse.y,v 1.101 2012/09/26 09:49:43 halex Exp $ */ /* * Copyright (c) 2008 Gilles Chehade <gilles@openbsd.org> @@ -783,7 +783,6 @@ action : DELIVER TO MAILDIR user { if (rule->r_value.relayhost.flags & F_AUTH) { if ($5 == NULL) { yyerror("error: auth without authmap"); - free($3); free($4); free($5); free($6); @@ -799,9 +798,7 @@ action : DELIVER TO MAILDIR user { if (ssl_load_certfile($4, F_CCERT) < 0) { yyerror("cannot load certificate: %s", $4); - free($3); free($4); - free($5); free($6); YYERROR; } |