summaryrefslogtreecommitdiff
path: root/usr.sbin/smtpd
diff options
context:
space:
mode:
authorJacek Masiulaniec <jacekm@cvs.openbsd.org>2009-12-06 00:27:32 +0000
committerJacek Masiulaniec <jacekm@cvs.openbsd.org>2009-12-06 00:27:32 +0000
commit6533a96ce5bbc8551b5b28a960e004b73141e307 (patch)
tree1a83b2ecabed886a852d1a2599716a96c37e6ecd /usr.sbin/smtpd
parentb7f719cea468677eceab308ae3e46752c377ec91 (diff)
fix previous
Diffstat (limited to 'usr.sbin/smtpd')
-rw-r--r--usr.sbin/smtpd/parse.y8
1 files changed, 5 insertions, 3 deletions
diff --git a/usr.sbin/smtpd/parse.y b/usr.sbin/smtpd/parse.y
index afc97f13f43..49b20da15b6 100644
--- a/usr.sbin/smtpd/parse.y
+++ b/usr.sbin/smtpd/parse.y
@@ -1,4 +1,4 @@
-/* $OpenBSD: parse.y,v 1.48 2009/12/05 18:42:31 chl Exp $ */
+/* $OpenBSD: parse.y,v 1.49 2009/12/06 00:27:31 jacekm Exp $ */
/*
* Copyright (c) 2008 Gilles Chehade <gilles@openbsd.org>
@@ -1704,7 +1704,6 @@ interface(const char *s, const char *tag, const char *cert,
*sain = *(struct sockaddr_in *)p->ifa_addr;
sain->sin_len = sizeof(struct sockaddr_in);
sain->sin_port = port;
-
break;
case AF_INET6:
@@ -1712,8 +1711,11 @@ interface(const char *s, const char *tag, const char *cert,
*sin6 = *(struct sockaddr_in6 *)p->ifa_addr;
sin6->sin6_len = sizeof(struct sockaddr_in6);
sin6->sin6_port = port;
-
break;
+
+ default:
+ free(h);
+ continue;
}
h->fd = -1;