summaryrefslogtreecommitdiff
path: root/usr/src/uts/common/inet/iptun/iptun_dev.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr/src/uts/common/inet/iptun/iptun_dev.c')
-rw-r--r--usr/src/uts/common/inet/iptun/iptun_dev.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/usr/src/uts/common/inet/iptun/iptun_dev.c b/usr/src/uts/common/inet/iptun/iptun_dev.c
index 52218bdc18..5043063690 100644
--- a/usr/src/uts/common/inet/iptun/iptun_dev.c
+++ b/usr/src/uts/common/inet/iptun/iptun_dev.c
@@ -91,11 +91,9 @@ iptun_stack_shutdown(netstackid_t stackid, void *arg)
/* note that iptun_delete() removes iptun from the list */
while ((iptun = list_head(&iptuns->iptuns_iptunlist)) != NULL) {
linkid = iptun->iptun_linkid;
- (void) iptun_delete(linkid, iptun->iptun_cred);
+ (void) iptun_delete(linkid, iptun->iptun_connp->conn_cred);
(void) dls_mgmt_destroy(linkid, B_FALSE);
}
- if (iptuns->iptuns_g_q != NULL)
- (void) ldi_close(iptuns->iptuns_g_q_lh, FWRITE|FREAD, CRED());
}
/*