diff options
author | jkh <jkh@FreeBSD.org> | 1999-11-08 16:19:25 +0000 |
---|---|---|
committer | jkh <jkh@FreeBSD.org> | 1999-11-08 16:19:25 +0000 |
commit | 841723920281b334148a3047294b079d906c8e07 (patch) | |
tree | e8aa68674abe50c47937d99bc13a3481936fd2a6 /usr.sbin/sysinstall | |
parent | 934bb28b94065fe43a852a315eb29c8d29492e40 (diff) | |
download | FreeBSD-src-841723920281b334148a3047294b079d906c8e07.zip FreeBSD-src-841723920281b334148a3047294b079d906c8e07.tar.gz |
Defensive coding to prevent a potential segfault.
PR: 14706
Submitted by: ru
Diffstat (limited to 'usr.sbin/sysinstall')
-rw-r--r-- | usr.sbin/sysinstall/tcpip.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/sysinstall/tcpip.c b/usr.sbin/sysinstall/tcpip.c index ada16d0..4cef217 100644 --- a/usr.sbin/sysinstall/tcpip.c +++ b/usr.sbin/sysinstall/tcpip.c @@ -478,7 +478,7 @@ tcpMenuSelect(dialogMenuItem *self) Device *tmp; tmp = tcpDeviceSelect(); - if (tmp && !((DevInfo *)tmp->private)->use_dhcp && !msgYesNo("Would you like to bring the %s interface up right now?", tmp->name)) + if (tmp && tmp->private && !((DevInfo *)tmp->private)->use_dhcp && !msgYesNo("Would you like to bring the %s interface up right now?", tmp->name)) if (!tmp->init(tmp)) msgConfirm("Initialization of %s device failed.", tmp->name); return DITEM_SUCCESS | DITEM_RESTORE; |