summaryrefslogtreecommitdiff
path: root/usr/src/lib/libinetcfg/common/inetcfg.c
diff options
context:
space:
mode:
authoryz147064 <none@none>2008-03-19 21:34:13 -0700
committeryz147064 <none@none>2008-03-19 21:34:13 -0700
commit811fc8e17e28618ca5149abc18f576709fc5875b (patch)
treea6165f1e8c81b39811b269e352f2d242ee7a7507 /usr/src/lib/libinetcfg/common/inetcfg.c
parent45391f50095088ce9d0b1362d78cb4d9d049e411 (diff)
downloadillumos-joyent-811fc8e17e28618ca5149abc18f576709fc5875b.tar.gz
6671160 dladm_setzid() should have a comment explaining why it takes a link name
6673156 dladm connect-wifi failure could potentially cause core dump 6673160 icfg_get_if_list() returns an incorrect data-link list when the ICFG_INSTALLED argument is passed
Diffstat (limited to 'usr/src/lib/libinetcfg/common/inetcfg.c')
-rw-r--r--usr/src/lib/libinetcfg/common/inetcfg.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr/src/lib/libinetcfg/common/inetcfg.c b/usr/src/lib/libinetcfg/common/inetcfg.c
index 6e3a2b111f..38beca5574 100644
--- a/usr/src/lib/libinetcfg/common/inetcfg.c
+++ b/usr/src/lib/libinetcfg/common/inetcfg.c
@@ -1772,13 +1772,13 @@ get_link_list(icfg_if_t **listp, int *numif) {
if (list == NULL)
goto done;
+ *listp = list;
for (entry = lw.lw_list; entry != NULL; entry = entry->ll_next) {
(void) strlcpy(list->if_name, entry->ll_name,
sizeof (list->if_name));
list->if_protocol = AF_UNSPEC;
list++;
}
- *listp = list;
*numif = lw.lw_num;
ret = ICFG_SUCCESS;