diff options
author | Aaron Campbell <aaron@cvs.openbsd.org> | 2002-08-08 13:51:26 +0000 |
---|---|---|
committer | Aaron Campbell <aaron@cvs.openbsd.org> | 2002-08-08 13:51:26 +0000 |
commit | a2705548511bc2760105bd44edb9810721b98b84 (patch) | |
tree | b63476b887e70f69dc7d14942310b4ae22df07a1 /sys/netns/spp_usrreq.c | |
parent | c883a3563709b4411c62a3b6ac39d42bc4c8c257 (diff) |
Use & to test if bits are set, not &&; art@ ok.
Diffstat (limited to 'sys/netns/spp_usrreq.c')
-rw-r--r-- | sys/netns/spp_usrreq.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/netns/spp_usrreq.c b/sys/netns/spp_usrreq.c index c32a7901459..9c62b625148 100644 --- a/sys/netns/spp_usrreq.c +++ b/sys/netns/spp_usrreq.c @@ -1,4 +1,4 @@ -/* $OpenBSD: spp_usrreq.c,v 1.13 2002/03/26 19:12:56 niklas Exp $ */ +/* $OpenBSD: spp_usrreq.c,v 1.14 2002/08/08 13:51:25 aaron Exp $ */ /* $NetBSD: spp_usrreq.c,v 1.9 1996/02/13 22:14:13 christos Exp $ */ /* @@ -461,7 +461,7 @@ update_window: } /* else queue this packet; */ } else { /*register struct socket *so = cb->s_nspcb->nsp_socket; - if (so->so_state && SS_NOFDREF) { + if (so->so_state & SS_NOFDREF) { ns_error(dtom(si), NS_ERR_NOSOCK, 0); (void)spp_close(cb); } else |