|
Lines 1257-1263
int ssmtp(char *argv[])
|
Link Here
|
|---|
|
/* Try to log in if username was supplied */ | /* Try to log in if username was supplied */ |
if(auth_user) { | if(auth_user) { |
#ifdef MD5AUTH | #ifdef MD5AUTH |
if(auth_pass == (char *)NULL) |
if(auth_pass == (char *)NULL) { |
auth_pass = strdup(""); | auth_pass = strdup(""); |
} | } |
| |
|
Lines 1271-1277
int ssmtp(char *argv[])
|
Link Here
|
|---|
|
strncpy(challenge, strchr(buf,' ') + 1, sizeof(challenge)); | strncpy(challenge, strchr(buf,' ') + 1, sizeof(challenge)); |
| |
memset(buf, 0, sizeof(buf)); | memset(buf, 0, sizeof(buf)); |
crammd5(challenge, authUsername, authPassword, buf); |
crammd5(challenge, auth_user, auth_pass, buf); |
} | } |
else { | else { |
#endif | #endif |