krb5 commit: Fix minor bug in responder.c test program

Greg Hudson <[email protected]>
Newsgroups gmane.comp.encryption.kerberos.cvs
Message-ID <[email protected]>
https://github.com/krb5/krb5/commit/2e51416b998ff7a0c6cf361de7b8bb241b4262fd
commit 2e51416b998ff7a0c6cf361de7b8bb241b4262fd
Author: Greg Hudson <[email protected]>
Date:   Fri Jan 6 12:05:29 2017 -0500

    Fix minor bug in responder.c test program
    
    "PKCS12:" has seven characters, not five.  Reported by Dorian Ducournau.
    
    ticket: 8533

 src/tests/responder.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/tests/responder.c b/src/tests/responder.c
index 21aae65..82f870e 100644
--- a/src/tests/responder.c
+++ b/src/tests/responder.c
@@ -226,7 +226,7 @@ responder(krb5_context ctx, void *rawdata, krb5_responder_context rctx)
         if (chl != NULL &&
             chl->identities != NULL &&
             chl->identities[0] != NULL) {
-            if (strncmp(chl->identities[0]->identity, "PKCS12:", 5) == 0)
+            if (strncmp(chl->identities[0]->identity, "PKCS12:", 7) == 0)
                 krb5_responder_pkinit_set_answer(ctx, rctx, "foo", "bar");
         }
         krb5_responder_pkinit_challenge_free(ctx, rctx, chl);
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.