Whamcloud - gitweb
LU-9430 utils: fix logic errors and putchar in sk_name2hmac() 20/26920/2
authorChris Hanna <hannac@iu.edu>
Tue, 2 May 2017 18:11:13 +0000 (14:11 -0400)
committerOleg Drokin <oleg.drokin@intel.com>
Tue, 9 May 2017 03:44:03 +0000 (03:44 +0000)
commit2ffbcc9f9ad930fee2df53238b3244b7c3e6bb91
treebbbaf857bfbe834e351364c09833b2fa06f6f31c
parent7d30275ceee9ba2c194020f80dcec05aea24937a
LU-9430 utils: fix logic errors and putchar in sk_name2hmac()

In the sk_name2hmac function in lgss_sk.c, there are a couple minor
errors: bad usage of strcmp(), use of putchar() instead of assigning
a lowercased value, and use of a logical OR instead of AND.

These errors would prevent proper creation of shared keys in certain
circumstances.

Signed-off-by: Chris Hanna <hannac@iu.edu>
Change-Id: I16462f15201626f194e1b452acf3a1e63dbf0ed7
Reviewed-on: https://review.whamcloud.com/26920
Tested-by: Jenkins
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Reviewed-by: James Simmons <uja.ornl@yahoo.com>
Tested-by: Maloo <hpdd-maloo@intel.com>
lustre/utils/gss/lgss_sk.c