diff options
author | Gilles Chehade <gilles@cvs.openbsd.org> | 2009-05-21 01:07:14 +0000 |
---|---|---|
committer | Gilles Chehade <gilles@cvs.openbsd.org> | 2009-05-21 01:07:14 +0000 |
commit | 3f542ffa36fa54b9a6a0decb07e9a48a29d33a9f (patch) | |
tree | b584ca5cc0e3f95cd020d8cb3129fe00e8583210 /usr.sbin/smtpd/mfa.c | |
parent | 452690b3f6a898ba1e63609fcc6f55d1e1a55f00 (diff) |
fix sockaddr_storage lenght check in mfa_check_source()
Diffstat (limited to 'usr.sbin/smtpd/mfa.c')
-rw-r--r-- | usr.sbin/smtpd/mfa.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/smtpd/mfa.c b/usr.sbin/smtpd/mfa.c index 3eadfeca52f..2b05b83644c 100644 --- a/usr.sbin/smtpd/mfa.c +++ b/usr.sbin/smtpd/mfa.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mfa.c,v 1.29 2009/05/20 16:07:26 gilles Exp $ */ +/* $OpenBSD: mfa.c,v 1.30 2009/05/21 01:07:13 gilles Exp $ */ /* * Copyright (c) 2008 Gilles Chehade <gilles@openbsd.org> @@ -635,7 +635,7 @@ mfa_check_source(struct map *map, struct sockaddr_storage *ss) if (ss->ss_family != me->me_key.med_addr.ss.ss_family) continue; - if (ss->ss_len == me->me_key.med_addr.ss.ss_len) + if (ss->ss_len != me->me_key.med_addr.ss.ss_len) continue; if (mfa_match_mask(ss, &me->me_key.med_addr)) |