Page MenuHomeFreeBSD

D34567.diff
No OneTemporary

D34567.diff

diff --git a/sys/nfs/bootp_subr.c b/sys/nfs/bootp_subr.c
--- a/sys/nfs/bootp_subr.c
+++ b/sys/nfs/bootp_subr.c
@@ -1501,7 +1501,7 @@
void
bootpc_init(void)
{
- struct bootpc_ifcontext *ifctx; /* Interface BOOTP contexts */
+ struct bootpc_ifcontext *ifctx = NULL; /* Interface BOOTP contexts */
struct bootpc_globalcontext *gctx; /* Global BOOTP context */
struct ifnet *ifp;
struct sockaddr_dl *sdl;
@@ -1571,9 +1571,13 @@
}
ifcnt++;
}
+
IFNET_RUNLOCK();
- if (ifcnt == 0)
- panic("%s: no eligible interfaces", __func__);
+ if (ifcnt == 0) {
+ printf("WARNING: BOOTP found no eligible network interfaces, skipping!\n");
+ goto out;
+ }
+
for (; ifcnt > 0; ifcnt--)
allocifctx(gctx);
#endif

File Metadata

Mime Type
text/plain
Expires
Sat, Feb 22, 9:41 PM (2 h, 36 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
16780810
Default Alt Text
D34567.diff (722 B)

Event Timeline