fixing missing status2 Release_2.1.0-RC12
authorVolker Birk <vb@pep-project.org>
Mon, 06 Jul 2020 18:54:30 +0200
changeset 4825d0150fa70a3d
parent 4824 f4e82dd81227
child 4826 c4cfd953d72c
fixing missing status2
src/baseprotocol.c
     1.1 --- a/src/baseprotocol.c	Mon Jul 06 18:51:37 2020 +0200
     1.2 +++ b/src/baseprotocol.c	Mon Jul 06 18:54:30 2020 +0200
     1.3 @@ -258,8 +258,8 @@
     1.4          // then try passphrases
     1.5          status = base_prepare_message(session, me, partner, type, payload, size, fpr, result);
     1.6          if (status == PEP_PASSPHRASE_REQUIRED || status == PEP_WRONG_PASSPHRASE) {
     1.7 -            status = session->messageToSend(NULL);
     1.8 -            if (status == PEP_PASSPHRASE_REQUIRED || status == PEP_WRONG_PASSPHRASE) {
     1.9 +            PEP_STATUS status2 = session->messageToSend(NULL);
    1.10 +            if (status2 == PEP_PASSPHRASE_REQUIRED || status2 == PEP_WRONG_PASSPHRASE) {
    1.11                  pEp_identity *_me = identity_dup(me);
    1.12                  if (!_me)
    1.13                      return PEP_OUT_OF_MEMORY;