From: Maxim Mamontov Date: Mon, 31 Aug 2015 18:53:28 +0000 (+0300) Subject: Fixed check for empty pair in rlm_stg. X-Git-Url: https://git.stg.codes/stg.git/commitdiff_plain/354ede117d8495936d0ad5bbf945aa4386578acd?ds=sidebyside;hp=9000c743ff21403975bc65780b4291a9ef68990e Fixed check for empty pair in rlm_stg. --- diff --git a/projects/rlm_stg/stgpair.h b/projects/rlm_stg/stgpair.h index dba9e3eb..e82c6672 100644 --- a/projects/rlm_stg/stgpair.h +++ b/projects/rlm_stg/stgpair.h @@ -23,7 +23,7 @@ typedef struct STG_RESULT { inline int emptyPair(const STG_PAIR* pair) { - return pair != NULL && pair->key[0] != '\0' && pair->value[0] != '\0'; + return pair == NULL || pair->key[0] == '\0' || pair->value[0] == '\0'; } #ifdef __cplusplus