diff options
| author | Toomas Soome <tsoome@me.com> | 2019-01-24 20:09:32 +0200 |
|---|---|---|
| committer | Toomas Soome <tsoome@me.com> | 2019-07-12 09:21:55 +0300 |
| commit | ef826847d2347ce01d945c4301ece23ced413215 (patch) | |
| tree | 25dc6701e382f3165c8fbba9748e6f51f6e8f906 | |
| parent | 33c72b7598992897b94815b1f47b7b8077e53808 (diff) | |
| download | illumos-joyent-ef826847d2347ce01d945c4301ece23ced413215.tar.gz | |
11352 idmap: NULL pointer errors
Reviewed by: Garrett D'Amore <garrett@damore.org>
Reviewed by: Peter Tribble <peter.tribble@gmail.com>
Approved by: Dan McDonald <danmcd@joyent.com>
| -rw-r--r-- | usr/src/cmd/idmap/idmap/namemaps.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr/src/cmd/idmap/idmap/namemaps.c b/usr/src/cmd/idmap/idmap/namemaps.c index bd72a0176d..c222583429 100644 --- a/usr/src/cmd/idmap/idmap/namemaps.c +++ b/usr/src/cmd/idmap/idmap/namemaps.c @@ -1013,7 +1013,7 @@ idmap_get_namemap(idmap_nm_handle_t *p, int *is_source_ad, char **winname, if (*winname != NULL) { *is_source_ad = IDMAP_YES; - if (p->is_ad == NULL) { + if (p->is_ad == FALSE) { rc = IDMAP_ERR_ARG; namemap_log( gettext("AD namemaps are not active.")); @@ -1034,7 +1034,7 @@ idmap_get_namemap(idmap_nm_handle_t *p, int *is_source_ad, char **winname, *is_source_ad = IDMAP_NO; - if (p->is_nldap == NULL) { + if (p->is_nldap == FALSE) { rc = IDMAP_ERR_ARG; namemap_log( gettext("Native ldap namemaps aren't active.")); |
