aboutsummaryrefslogtreecommitdiff
path: root/nametoaddr.c
diff options
context:
space:
mode:
authorXin LI <delphij@FreeBSD.org>2015-01-06 18:58:31 +0000
committerXin LI <delphij@FreeBSD.org>2015-01-06 18:58:31 +0000
commit50224b10fa4e157f09ee1cd03c790c9e61e76c5e (patch)
tree2a457967e5c853893b53d8dc147937913dcbd8fc /nametoaddr.c
parent59ed76438047aa730b3a617abd873b84457fc4fd (diff)
Notes
Diffstat (limited to 'nametoaddr.c')
-rw-r--r--nametoaddr.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/nametoaddr.c b/nametoaddr.c
index c0e86f43ab3b0..e6483a358d09f 100644
--- a/nametoaddr.c
+++ b/nametoaddr.c
@@ -22,11 +22,6 @@
* These functions are not time critical.
*/
-#ifndef lint
-static const char rcsid[] _U_ =
- "@(#) $Header: /tcpdump/master/libpcap/nametoaddr.c,v 1.83 2008-02-06 10:21:30 guy Exp $ (LBL)";
-#endif
-
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
@@ -415,6 +410,8 @@ pcap_ether_aton(const char *s)
register u_int d;
e = ep = (u_char *)malloc(6);
+ if (e == NULL)
+ return (NULL);
while (*s) {
if (*s == ':' || *s == '.' || *s == '-')