diff options
author | Alexander Bokovoy <ab@samba.org> | 2022-02-16 13:56:32 +0200 |
---|---|---|
committer | Pavel Shilovsky <pshilovsky@samba.org> | 2022-04-29 15:07:49 -0700 |
commit | 9b074dbfc879145fd53a2108cdf8ba1baa2af956 (patch) | |
tree | e009f4298283ac6a7412614547672b23da31bbbc /cifs.upcall.c | |
parent | 29816863ca906339e65389bffebe9c3517240335 (diff) | |
download | cifs-utils-9b074dbfc879145fd53a2108cdf8ba1baa2af956.tar.gz cifs-utils-9b074dbfc879145fd53a2108cdf8ba1baa2af956.tar.bz2 cifs-utils-9b074dbfc879145fd53a2108cdf8ba1baa2af956.zip |
cifs.upcall: remove unused variable and fix syslog message
The code already checks arg->have and has no use for local 'have'
variable other than syslog() print. That variable is not initialized and
the intent is really to use arg->have instead.
Signed-off-by: Alexander Bokovoy <ab@samba.org>
Diffstat (limited to 'cifs.upcall.c')
-rw-r--r-- | cifs.upcall.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/cifs.upcall.c b/cifs.upcall.c index 7341c2f..7a8c374 100644 --- a/cifs.upcall.c +++ b/cifs.upcall.c @@ -1290,7 +1290,6 @@ int main(const int argc, char *const argv[]) DATA_BLOB sess_key = data_blob_null; key_serial_t key = 0; size_t datalen; - unsigned int have; long rc = 1; int c; bool try_dns = false, legacy_uid = false , env_probe = true; @@ -1398,7 +1397,7 @@ int main(const int argc, char *const argv[]) if ((arg->have & DKD_MUSTHAVE_SET) != DKD_MUSTHAVE_SET) { syslog(LOG_ERR, "unable to get necessary params from key " - "description (0x%x)", have); + "description (0x%x)", arg->have); rc = 1; goto out; } |