summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Levon <john.levon@joyent.com>2018-12-19 17:35:24 +0000
committerJohn Levon <john.levon@joyent.com>2019-03-21 15:35:49 -0700
commitc83793e8beca1f638b19f9fba9570ee705f7a494 (patch)
tree92d2c0f33dea1dcffc9f3f18e8acf3a9dfe04da7
parentfeb176ed7e0a1726bd78c575ee5225ae49b5b0a8 (diff)
downloadillumos-joyent-c83793e8beca1f638b19f9fba9570ee705f7a494.tar.gz
10116 mech_dh needs smatch fixes
Reviewed by: Andy Stormont <astormont@racktopsystems.com> Approved by: Dan McDonald <danmcd@joyent.com>
-rw-r--r--usr/src/lib/gss_mechs/mech_dh/dh_common/dh_template.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/usr/src/lib/gss_mechs/mech_dh/dh_common/dh_template.c b/usr/src/lib/gss_mechs/mech_dh/dh_common/dh_template.c
index be8dab28cb..4640cce212 100644
--- a/usr/src/lib/gss_mechs/mech_dh/dh_common/dh_template.c
+++ b/usr/src/lib/gss_mechs/mech_dh/dh_common/dh_template.c
@@ -26,7 +26,9 @@
* All rights reserved.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
+/*
+ * Copyright (c) 2018, Joyent, Inc.
+ */
#include <stdlib.h>
#include <string.h>
@@ -104,7 +106,7 @@ dh_getpublickey(const char *remote, keylen_t keylen, algtype_t algtype,
static const char NIS_SYMBOL[] = "__rpcsec_gss_is_server";
if (!init_nis_pubkey) {
- mutex_lock(&init_nis_pubkey_lock);
+ (void) mutex_lock(&init_nis_pubkey_lock);
if (!init_nis_pubkey) {
void *dlhandle = dlopen(0, RTLD_NOLOAD);
if (dlhandle == 0) {
@@ -117,7 +119,7 @@ dh_getpublickey(const char *remote, keylen_t keylen, algtype_t algtype,
}
init_nis_pubkey = 1;
}
- mutex_unlock(&init_nis_pubkey_lock);
+ (void) mutex_unlock(&init_nis_pubkey_lock);
}
if (nis_call && (*nis_call)()) {
int key_cached;