summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpwernau <none@none>2006-03-31 06:37:12 -0800
committerpwernau <none@none>2006-03-31 06:37:12 -0800
commit9c8faeba7fe6b60f4d629aa58c012cac532932f2 (patch)
treeb8c8b9ca805c132d0cf7056c3edfd35e75066eaf
parentb46e597822faf94f27a7e983279bed4da6b491b0 (diff)
downloadillumos-joyent-9c8faeba7fe6b60f4d629aa58c012cac532932f2.tar.gz
6406097 tsol_option_set breaks userland IP option setting
-rw-r--r--usr/src/uts/common/inet/ip/tn_ipopt.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr/src/uts/common/inet/ip/tn_ipopt.c b/usr/src/uts/common/inet/ip/tn_ipopt.c
index 2b96c7f544..9e5bdd4ff7 100644
--- a/usr/src/uts/common/inet/ip/tn_ipopt.c
+++ b/usr/src/uts/common/inet/ip/tn_ipopt.c
@@ -1433,7 +1433,7 @@ tsol_option_set(uchar_t **opts, uint_t *optlen, uint_t labellen,
/* need more room */
newopts = (uchar_t *)mi_alloc(newlen, BPRI_HI);
if (newopts == NULL)
- return (ENOMEM);
+ return (B_FALSE);
/*
* The supplied *opts can't be NULL in this case,
* since there's an existing label.
@@ -1465,5 +1465,5 @@ tsol_option_set(uchar_t **opts, uint_t *optlen, uint_t labellen,
}
*optlen = newlen;
- return (0);
+ return (B_TRUE);
}