Fixed small bug in the ManageSieve proxy.
authorStephan Bosch <stephan@rename-it.nl>
Sat Jan 31 22:25:16 2009 +0100 (2009-01-31)
changeset 79f575c6b41697
parent 78 316d7bbec2d2
child 80 776c4a838d68
Fixed small bug in the ManageSieve proxy.
src/managesieve-login/managesieve-proxy.c
     1.1 --- a/src/managesieve-login/managesieve-proxy.c	Mon Jan 26 19:05:00 2009 +0100
     1.2 +++ b/src/managesieve-login/managesieve-proxy.c	Sat Jan 31 22:25:16 2009 +0100
     1.3 @@ -168,7 +168,7 @@
     1.4  		return 0;
     1.5  
     1.6  	} else { 
     1.7 -		if (strncasecmp(line, "OK ", 3) == 0) {
     1.8 +		if ( strncasecmp(line, "OK", 2) == 0 && ( strlen(line) == 2 || line[2] == ' ' ) ) {
     1.9  			/* Login successful. Send this line to client. */
    1.10  			o_stream_cork(client->output);
    1.11  			(void)o_stream_send_str(client->output, line);