ENGINE-360 and ENGINE-373 - double free fun action.
authorKrista Bennett <krista@pep-project.org>
Mon, 12 Feb 2018 23:02:13 +0100
changeset 2500b9e025865715
parent 2499 b590fce7ee75
child 2501 2e8bb7f39f04
ENGINE-360 and ENGINE-373 - double free fun action.
src/keymanagement.c
     1.1 --- a/src/keymanagement.c	Mon Feb 12 12:45:27 2018 +0100
     1.2 +++ b/src/keymanagement.c	Mon Feb 12 23:02:13 2018 +0100
     1.3 @@ -396,6 +396,7 @@
     1.4          if (!EMPTYSTR(return_id->username) && 
     1.5              (strcasecmp(return_id->username, return_id->address) == 0)) {
     1.6              free(return_id->username);
     1.7 +            return_id->username = NULL;
     1.8          }
     1.9          if (EMPTYSTR(return_id->username)) {
    1.10              free(return_id->username);