Skip to content

Commit 1ccd773

Browse files
Updated the condition to parse AuthPass with '=' or ':' in it, fixes #3
1 parent e9bbc43 commit 1ccd773

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ssmtp.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1049,7 +1049,7 @@ bool_t read_config()
10491049
}
10501050
}
10511051
else if(strcasecmp(p, "AuthPass") == 0 && !auth_pass) {
1052-
if((auth_pass = strdup(q)) == (char *)NULL) {
1052+
if((auth_pass = firsttok(&rightside, " \n\t")) == (char *)NULL) {
10531053
die("parse_config() -- strdup() failed");
10541054
}
10551055

0 commit comments

Comments
 (0)