summaryrefslogtreecommitdiff
path: root/mail/vpopmail/files/vchkpw-smtp-auth.patch
blob: 57b0f7d5591d2be280886e17590031e5ef3fb9b7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
Description: Use the correct order of arguments for the SMTP auth calculations.
 Only applied if requested at port build time.
Forwarded: not-needed
Author: Nikolay Georgiev <niki@techlab.office1.bg>
Last-Update: 2009-11-26

--- a/vchkpw.c
+++ b/vchkpw.c
@@ -441,7 +441,8 @@
     /* Check CRAM-MD5 auth */
     if(ConnType == SMTP_CONN) {
       /* printf("vchkpw: smtp auth\n"); */
-      cramaccepted = authcram(ThePass,TheChallenge,vpw->pw_clear_passwd);
+      /* cramaccepted = authcram(ThePass,TheChallenge,vpw->pw_clear_passwd); */
+      cramaccepted = authcram(TheChallenge,ThePass,vpw->pw_clear_passwd);
       if(cramaccepted == 0) strcpy(AuthType, "CRAM-MD5");
     }