diff options
author | 2008-07-11 15:05:59 +0000 | |
---|---|---|
committer | 2008-07-11 15:05:59 +0000 | |
commit | fced8b25e984afdc3d202f00e9bc5a1d03341c93 (patch) | |
tree | f84d849aed79cff13aae96ec8e296e313a0605ba | |
parent | Check the correct BMSR bit in the capabilities field when checking (diff) | |
download | wireguard-openbsd-fced8b25e984afdc3d202f00e9bc5a1d03341c93.tar.xz wireguard-openbsd-fced8b25e984afdc3d202f00e9bc5a1d03341c93.zip |
shut off an annoying gcc warning.
ok beck@
-rw-r--r-- | libexec/spamd/spamd.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/libexec/spamd/spamd.c b/libexec/spamd/spamd.c index 044caf7f017..2e0670a7e68 100644 --- a/libexec/spamd/spamd.c +++ b/libexec/spamd/spamd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: spamd.c,v 1.103 2007/11/03 19:16:07 beck Exp $ */ +/* $OpenBSD: spamd.c,v 1.104 2008/07/11 15:05:59 reyk Exp $ */ /* * Copyright (c) 2002-2007 Bob Beck. All rights reserved. @@ -610,6 +610,7 @@ gethelo(char *p, size_t len, char *f) void initcon(struct con *cp, int fd, struct sockaddr *sa) { + socklen_t len = sa->sa_len; time_t tt; char *tmp; int error; @@ -626,7 +627,7 @@ initcon(struct con *cp, int fd, struct sockaddr *sa) if (grow_obuf(cp, 0) == NULL) err(1, "malloc"); cp->fd = fd; - if (sa->sa_len > sizeof(cp->ss)) + if (len > sizeof(cp->ss)) errx(1, "sockaddr size"); if (sa->sa_family != AF_INET) errx(1, "not supported yet"); |