Removed assert, because an empty username is totally valid input from an email, and we deal with it directly in the code that follows where the assert was.
authorKrista Grothoff <krista@pep-project.org>
Fri, 13 Jan 2017 15:37:35 +0100
changeset 15353efb259b8d2c
parent 1527 75d56a822caa
child 1536 8efaa23410e0
Removed assert, because an empty username is totally valid input from an email, and we deal with it directly in the code that follows where the assert was.
src/keymanagement.c
     1.1 --- a/src/keymanagement.c	Fri Jan 06 10:23:51 2017 +0100
     1.2 +++ b/src/keymanagement.c	Fri Jan 13 15:37:35 2017 +0100
     1.3 @@ -263,7 +263,6 @@
     1.4      status = PEP_STATUS_OK;
     1.5  
     1.6      if (temp_id->comm_type != PEP_ct_unknown && !EMPTYSTR(temp_id->user_id)) {
     1.7 -        assert(!EMPTYSTR(temp_id->username)); // this should not happen
     1.8  
     1.9          if (EMPTYSTR(temp_id->username)) { // mitigate
    1.10              free(temp_id->username);