Date: Sun, 8 Sep 2002 05:00:16 -0700 (PDT) From: Mike Makonnen <makonnen@pacbell.net> To: freebsd-bugs@FreeBSD.org Subject: Re: bin/42544: ifconfig.core, nonsense syntax causes "Segmentation fault" in ifconfig Message-ID: <200209081200.g88C0GeQ012979@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR bin/42544; it has been noted by GNATS. From: Mike Makonnen <makonnen@pacbell.net> To: vd@etrade.bg Cc: FreeBSD-gnats-submit@FreeBSD.ORG Subject: Re: bin/42544: ifconfig.core, nonsense syntax causes "Segmentation fault" in ifconfig Date: Sun, 08 Sep 2002 05:11:44 -0700 Hello Vasil, Please apply the following patch. It should fix your problem. Cheers, Mike Makonnen. Index: sbin/ifconfig/ifconfig.c =================================================================== RCS file: /home/ncvs/src/sbin/ifconfig/ifconfig.c,v retrieving revision 1.79 diff -u -r1.79 ifconfig.c --- sbin/ifconfig/ifconfig.c 19 Aug 2002 15:18:24 -0000 1.79 +++ sbin/ifconfig/ifconfig.c 8 Sep 2002 12:05:12 -0000 @@ -963,9 +963,10 @@ notealias(const char *addr, int param, int s, const struct afswtch *afp) { if (setaddr && doalias == 0 && param < 0) - bcopy((caddr_t)rqtosa(af_addreq), - (caddr_t)rqtosa(af_ridreq), - rqtosa(af_addreq)->sa_len); + if (afp->af_addreq != NULL && afp->af_ridreq != NULL) + bcopy((caddr_t)rqtosa(af_addreq), + (caddr_t)rqtosa(af_ridreq), + rqtosa(af_addreq)->sa_len); doalias = param; if (param < 0) { clearaddr = 1; To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200209081200.g88C0GeQ012979>