diff options
| author | Eric S. Raymond <esr@thyrsus.com> | 1999-09-11 02:23:28 +0000 | 
|---|---|---|
| committer | Eric S. Raymond <esr@thyrsus.com> | 1999-09-11 02:23:28 +0000 | 
| commit | 8f826df8fbadd811f6bcc31344e3d8472bd6f2bb (patch) | |
| tree | b58fefa9fefe9ebb3ecc7721c464d978a0fc41c8 /imap.c | |
| parent | dd6e5c6501f58c49445f2d5b5da978183303f275 (diff) | |
| download | fetchmail-8f826df8fbadd811f6bcc31344e3d8472bd6f2bb.tar.gz fetchmail-8f826df8fbadd811f6bcc31344e3d8472bd6f2bb.tar.bz2 fetchmail-8f826df8fbadd811f6bcc31344e3d8472bd6f2bb.zip | |
Code changes needed for next release.
svn path=/trunk/; revision=2552
Diffstat (limited to 'imap.c')
| -rw-r--r-- | imap.c | 15 | 
1 files changed, 8 insertions, 7 deletions
| @@ -261,7 +261,14 @@ static int do_rfc1731(int sock, char *truename)  	return result;      } -    /* this patch by Dan Root <dar@thekeep.org> solves an endianess problem. */ +    len = from64tobits(challenge1.cstr, buf1); +    if (len < 0) { +	report(stderr, _("could not decode initial BASE64 challenge\n")); +	return PS_AUTHFAIL; +    } + +    /* this patch by Dan Root <dar@thekeep.org> solves an endianess +     * problem. */      {  	char tmp[4]; @@ -269,12 +276,6 @@ static int do_rfc1731(int sock, char *truename)  	memcpy(challenge1.cstr, tmp, sizeof(tmp));      } -    len = from64tobits(challenge1.cstr, buf1); -    if (len < 0) { -	report(stderr, _("could not decode initial BASE64 challenge\n")); -	return PS_AUTHFAIL; -    } -      /* Client responds with a Kerberos ticket and an authenticator for       * the principal "imap.hostname@realm" where "hostname" is the       * first component of the host name of the server with all letters | 
