X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/d241dd27df3a32b5477eadb1a9d4897d7fcf76a7..e39f173d25ae650ee843e3d1c311abe9c1cb5ee9:/projects/rlm_stg/rlm_stg.c?ds=sidebyside diff --git a/projects/rlm_stg/rlm_stg.c b/projects/rlm_stg/rlm_stg.c index 50654593..84df4e7b 100644 --- a/projects/rlm_stg/rlm_stg.c +++ b/projects/rlm_stg/rlm_stg.c @@ -57,9 +57,11 @@ static size_t toVPS(const STG_PAIR* pairs, VALUE_PAIR** vps) while (!emptyPair(pair)) { VALUE_PAIR* vp = pairmake(pair->key, pair->value, T_OP_SET); - pairadd(vps, vp); + if (vp != NULL) { + pairadd(vps, vp); + ++count; + } ++pair; - ++count; } return count;