summaryrefslogtreecommitdiff
path: root/usr/src/lib/libsocket
diff options
context:
space:
mode:
authorjbeck <none@none>2007-03-30 17:01:13 -0700
committerjbeck <none@none>2007-03-30 17:01:13 -0700
commitd71dbb732372504daff1f1783bc0d8864ce9bd50 (patch)
tree250aa1eba146725a05b071c536722a5e879d43f0 /usr/src/lib/libsocket
parent623cc4421f2b351089438cb912f6d8b9f2fd3e6c (diff)
downloadillumos-joyent-d71dbb732372504daff1f1783bc0d8864ce9bd50.tar.gz
PSARC 2007/136 Network Auto-Magic (NWAM) Phase 0
6355747 /lib/svc/method/net-svc makes a mess of hosts and ipnodes 6366093 "ifconfig <wireless-lan-device> dhcp" not enough to surf with browser 6539574 _link_aton() underallocates a buffer
Diffstat (limited to 'usr/src/lib/libsocket')
-rw-r--r--usr/src/lib/libsocket/inet/link_addr.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/usr/src/lib/libsocket/inet/link_addr.c b/usr/src/lib/libsocket/inet/link_addr.c
index 36840521ab..bdb62fbbc7 100644
--- a/usr/src/lib/libsocket/inet/link_addr.c
+++ b/usr/src/lib/libsocket/inet/link_addr.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,8 +18,9 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2007 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
@@ -106,7 +106,7 @@ _link_aton(const char *ascaddr, int *maclen)
return (NULL);
}
- if ((netaddr = malloc(numcolons)) == NULL) {
+ if ((netaddr = malloc(numcolons + 1)) == NULL) {
*maclen = 0;
return (NULL);
}