ProxyCommand broken in SNAP-20010814

Pavel Kankovsky peak at argo.troja.mff.cuni.cz
Thu Aug 16 03:22:57 EST 2001


For some odd reason, one line was removed from the handling of
ProxyCommand in readconf.c. As a result, ssh crashes on strlen(string)
when it parses this option.

--- readconf.c:X	Mon Aug  6 23:35:52 2001
+++ readconf.c	Wed Aug 15 16:11:44 2001
@@ -475,6 +475,7 @@
 
 	case oProxyCommand:
 		charptr = &options->proxy_command;
+		string = xstrdup("");
 		while ((arg = strdelim(&s)) != NULL && *arg != '\0') {
 			string = xrealloc(string, strlen(string) + strlen(arg) + 2); 			strcat(string, " ");

--Pavel Kankovsky aka Peak  [ Boycott Microsoft--http://www.vcnet.com/bms ]
"Resistance is futile. Open your source code and prepare for assimilation."




More information about the openssh-unix-dev mailing list