From aaa28d4ab3437f3641aedf98074d8325ecec1196 Mon Sep 17 00:00:00 2001 From: Michael Rash Date: Wed, 8 May 2013 23:44:13 -0400 Subject: [PATCH] [server] double free bug fix in access.conf parsing routine caught by Coverity --- server/access.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/server/access.c b/server/access.c index 0a0b207c..d690e2fd 100644 --- a/server/access.c +++ b/server/access.c @@ -1185,8 +1185,6 @@ parse_access_file(fko_srv_options_t *opts) if(curr_acc->gpg_allow_no_pw == 1) { add_acc_bool(&(curr_acc->use_gpg), "Y"); - if(curr_acc->gpg_decrypt_pw != NULL && curr_acc->gpg_decrypt_pw[0] != '\0') - free(curr_acc->gpg_decrypt_pw); add_acc_string(&(curr_acc->gpg_decrypt_pw), ""); } }