diff options
author | Hans-Joerg Hoexer <hshoexer@cvs.openbsd.org> | 2004-07-07 09:13:02 +0000 |
---|---|---|
committer | Hans-Joerg Hoexer <hshoexer@cvs.openbsd.org> | 2004-07-07 09:13:02 +0000 |
commit | b2d1244ff34d26ee86ca93a5f2d0d5e1a2538692 (patch) | |
tree | 6dc5b6d5a1958d7ac8a547f6a0819633072ae3e0 /sbin/isakmpd/udp_encap.c | |
parent | 79bee63ec7d17fbd44df4689654b7a71cd547913 (diff) |
compile cleanly with -Wsign-compare; while around, kill a space
ok ho@
Diffstat (limited to 'sbin/isakmpd/udp_encap.c')
-rw-r--r-- | sbin/isakmpd/udp_encap.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sbin/isakmpd/udp_encap.c b/sbin/isakmpd/udp_encap.c index e9ef4c0a3e7..0ad696d950c 100644 --- a/sbin/isakmpd/udp_encap.c +++ b/sbin/isakmpd/udp_encap.c @@ -1,4 +1,4 @@ -/* $OpenBSD: udp_encap.c,v 1.3 2004/06/21 23:27:10 ho Exp $ */ +/* $OpenBSD: udp_encap.c,v 1.4 2004/07/07 09:13:01 hshoexer Exp $ */ /* * Copyright (c) 1998, 1999, 2001 Niklas Hallqvist. All rights reserved. @@ -195,7 +195,7 @@ udp_encap_make(struct sockaddr *laddr) t->transport.flags |= TRANSPORT_LISTEN; return &t->transport; - err: +err: if (s >= 0) close (s); if (t) { @@ -400,7 +400,7 @@ udp_encap_handle_message(struct transport *t) return; /* Check NULL-ESP marker. */ - if (n < sizeof (u_int32_t) || *(u_int32_t *)buf != 0) { + if (n < (ssize_t)sizeof(u_int32_t) || *(u_int32_t *)buf != 0) { /* Should never happen. */ log_print ("udp_encap_handle_message: " "Null-ESP marker not NULL or short message"); |