summaryrefslogtreecommitdiff
blob: 5d6aae9a5104cee784e93b94f34b5cb04da9dd8e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
--- ssmtp.c	2008-09-26 02:13:48.000000000 -0600
+++ ssmtp.c.new	2008-09-26 02:15:41.000000000 -0600
@@ -1056,7 +1042,8 @@
 				}
 			}
 			else if(strcasecmp(p, "AuthPass") == 0 && !auth_pass) {
-				if((auth_pass = strdup(q)) == (char *)NULL) {
+				auth_pass = firsttok(&rightside, " \n\t");
+				if(auth_pass  == (char *)NULL) {
 					die("parse_config() -- strdup() failed");
 				}