From 354ede117d8495936d0ad5bbf945aa4386578acd Mon Sep 17 00:00:00 2001 From: Maxim Mamontov Date: Mon, 31 Aug 2015 21:53:28 +0300 Subject: [PATCH 1/1] Fixed check for empty pair in rlm_stg. --- projects/rlm_stg/stgpair.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.44.2