diff options
author | Walter de Jong <walter@heiho.net> | 2013-03-27 21:44:47 +0100 |
---|---|---|
committer | Walter de Jong <walter@heiho.net> | 2013-03-27 21:44:47 +0100 |
commit | 146e0bb71ca08cb9457e3a265c0cca1c256d30cb (patch) | |
tree | 9a0e3c9ceea998cb3d50a1e26c5efa7ac8687e78 /libtac/lib/connect.c | |
parent | e1bc8e8314544a5affcad33d132352bd8d3d69f2 (diff) | |
download | pam_tacplus-146e0bb71ca08cb9457e3a265c0cca1c256d30cb.tar.gz pam_tacplus-146e0bb71ca08cb9457e3a265c0cca1c256d30cb.zip |
if key is set
Diffstat (limited to 'libtac/lib/connect.c')
-rw-r--r-- | libtac/lib/connect.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libtac/lib/connect.c b/libtac/lib/connect.c index d6d699e..f3ead9f 100644 --- a/libtac/lib/connect.c +++ b/libtac/lib/connect.c @@ -154,7 +154,7 @@ int tac_connect_single(struct addrinfo *server, char *key) { /* set current tac_secret */ tac_encryption = 0; - if (key != NULL && strcmp(key, "") != 0) { + if (key != NULL && *key) { tac_encryption = 1; tac_secret = key; } |