]> Pileus Git - ~andy/fetchmail/commitdiff
Validate challenge to AUTH[ENTICATE] GSSAPI and warn if malformed.
authorMatthias Andree <matthias.andree@gmx.de>
Mon, 27 Sep 2010 11:24:02 +0000 (13:24 +0200)
committerMatthias Andree <matthias.andree@gmx.de>
Mon, 27 Sep 2010 11:24:02 +0000 (13:24 +0200)
gssapi.c

index 2d6315e078644e6ebea6c47f82c6c43a247e9d4c..9f366f276133700dd14fdaa018694d4aa289cd1c 100644 (file)
--- a/gssapi.c
+++ b/gssapi.c
@@ -153,6 +153,13 @@ int do_gssauth(int sock, const char *command, const char *service,
     if (result)
        return result;
 
+    if (strcmp(buf1, "+ ")) {
+       if (outlevel >= O_VERBOSE) {
+           report(stdout, GT_("Warning: received malformed challenge to \"%s GSSAPI\"!"), command);
+       }
+    }
+
+
     /* now start the security context initialisation loop... */
     sec_token = GSS_C_NO_BUFFER;
     context = GSS_C_NO_CONTEXT;