diff options
author | Toomas Soome <tsoome@FreeBSD.org> | 2017-05-10 15:35:41 +0000 |
---|---|---|
committer | Toomas Soome <tsoome@FreeBSD.org> | 2017-05-10 15:35:41 +0000 |
commit | 2d8b61145c6645391518081af53dbd9c70b8062f (patch) | |
tree | 1a1c214993ca8d9753d473f93c7ce035abbef692 /lib/libstand/rarp.c | |
parent | 5cbe126a6d5ae0019a518bea2f60c61f0ff546f8 (diff) | |
download | src-2d8b61145c6645391518081af53dbd9c70b8062f.tar.gz src-2d8b61145c6645391518081af53dbd9c70b8062f.zip |
libstand: NULL pointer dereference in rarp
readether argument is missing & operator.
CID: 1374944
Reported by: Coverity, cem
Reviewed by: cem
Differential Revision: https://reviews.freebsd.org/D10663
Notes
Notes:
svn path=/head/; revision=318142
Diffstat (limited to 'lib/libstand/rarp.c')
-rw-r--r-- | lib/libstand/rarp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libstand/rarp.c b/lib/libstand/rarp.c index 8d996d04a3f6..b7e3ea486079 100644 --- a/lib/libstand/rarp.c +++ b/lib/libstand/rarp.c @@ -155,7 +155,7 @@ rarprecv(struct iodesc *d, void **pkt, void **payload, time_t tleft) printf("rarprecv: "); #endif - n = readether(d, ptr, (void **)&ap, tleft, &etype); + n = readether(d, &ptr, (void **)&ap, tleft, &etype); errno = 0; /* XXX */ if (n == -1 || n < sizeof(struct ether_arp)) { #ifdef RARP_DEBUG |