diff options
author | Jacek Masiulaniec <jacekm@cvs.openbsd.org> | 2009-03-01 12:10:25 +0000 |
---|---|---|
committer | Jacek Masiulaniec <jacekm@cvs.openbsd.org> | 2009-03-01 12:10:25 +0000 |
commit | e5a61ceaaedce871600b2b535c073a3294bf9378 (patch) | |
tree | d9a1074b7756231893981d6c72e54f46d246c374 | |
parent | c6d6694caeb993645c4d7255c9c97c195b4f7bc9 (diff) |
ss_len was set to sizeof pointer, should be sizeof structure; ok gilles@
-rw-r--r-- | usr.sbin/smtpd/enqueue.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/smtpd/enqueue.c b/usr.sbin/smtpd/enqueue.c index 48b1dd37b1f..ae028b4a80c 100644 --- a/usr.sbin/smtpd/enqueue.c +++ b/usr.sbin/smtpd/enqueue.c @@ -1,4 +1,4 @@ -/* $OpenBSD: enqueue.c,v 1.9 2009/02/22 11:44:29 form Exp $ */ +/* $OpenBSD: enqueue.c,v 1.10 2009/03/01 12:10:24 jacekm Exp $ */ /* * Copyright (c) 2008 Gilles Chehade <gilles@openbsd.org> @@ -160,11 +160,11 @@ enqueue_add_recipient(struct message *messagep, char *recipient) message.session_rcpt = message.recipient; mr.ss.ss_family = AF_INET6; - mr.ss.ss_len = sizeof(ssin6); + mr.ss.ss_len = sizeof(*ssin6); ssin6 = (struct sockaddr_in6 *)&mr.ss; if (inet_pton(AF_INET6, "::1", &ssin6->sin6_addr) != 1) { mr.ss.ss_family = AF_INET; - mr.ss.ss_len = sizeof(ssin); + mr.ss.ss_len = sizeof(*ssin); ssin = (struct sockaddr_in *)&mr.ss; if (inet_pton(AF_INET, "127.0.0.1", &ssin->sin_addr) != 1) return 0; |