diff options
author | Anil Madhavapeddy <avsm@cvs.openbsd.org> | 2003-09-23 11:13:21 +0000 |
---|---|---|
committer | Anil Madhavapeddy <avsm@cvs.openbsd.org> | 2003-09-23 11:13:21 +0000 |
commit | 52ad5ce3afef2cfd7e2297855671baae289dd941 (patch) | |
tree | a9b1f565ae6f86ceed2dc09ca83232695e8bacff /sys/dev/ic | |
parent | 943bf34f6bdc36f6c29e76bcd6bfcaf7ff938a9c (diff) |
revert safety checks; requested by mickey@
Diffstat (limited to 'sys/dev/ic')
-rw-r--r-- | sys/dev/ic/an.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/sys/dev/ic/an.c b/sys/dev/ic/an.c index 0d22dca1ed6..63dab9a8375 100644 --- a/sys/dev/ic/an.c +++ b/sys/dev/ic/an.c @@ -1,4 +1,4 @@ -/* $OpenBSD: an.c,v 1.29 2003/09/19 00:27:02 avsm Exp $ */ +/* $OpenBSD: an.c,v 1.30 2003/09/23 11:13:20 avsm Exp $ */ /* * Copyright (c) 1997, 1998, 1999 @@ -240,16 +240,10 @@ an_attach(sc) ifp->if_baudrate = 10000000; IFQ_SET_READY(&ifp->if_snd); - if (sizeof(sc->an_config.an_nodename) < sizeof(AN_DEFAULT_NODENAME)) - panic("AN_DEFAULT_NODENAME too long"); - bzero(sc->an_config.an_nodename, sizeof(sc->an_config.an_nodename)); bcopy(AN_DEFAULT_NODENAME, sc->an_config.an_nodename, sizeof(AN_DEFAULT_NODENAME) - 1); - if (sizeof(sc->an_ssidlist.an_ssid1) < sizeof(AN_DEFAULT_NETNAME)) - panic("AN_DEFAULT_NETNAME too long"); - bzero(sc->an_ssidlist.an_ssid1, sizeof(sc->an_ssidlist.an_ssid1)); bcopy(AN_DEFAULT_NETNAME, sc->an_ssidlist.an_ssid1, sizeof(AN_DEFAULT_NETNAME) - 1); |