aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Andree <matthias.andree@gmx.de>2010-09-27 13:24:02 +0200
committerMatthias Andree <matthias.andree@gmx.de>2010-09-27 13:24:02 +0200
commit43dc72537228ac7c4819ac70b9737c25ceb9f75a (patch)
tree0a6638dfd48136e5d998e277743e1fc66ca75932
parent52a26f732375c2edaff8b36db6c27e23126e3a5c (diff)
downloadfetchmail-43dc72537228ac7c4819ac70b9737c25ceb9f75a.tar.gz
fetchmail-43dc72537228ac7c4819ac70b9737c25ceb9f75a.tar.bz2
fetchmail-43dc72537228ac7c4819ac70b9737c25ceb9f75a.zip
Validate challenge to AUTH[ENTICATE] GSSAPI and warn if malformed.
-rw-r--r--gssapi.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/gssapi.c b/gssapi.c
index 2d6315e0..9f366f27 100644
--- 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;