From: Dan Fandrich Date: Thu, 28 Jul 2011 19:41:44 +0000 (-0700) Subject: Removed an extraneous \n that violated the SSO daemon protocol X-Git-Tag: curl-7_22_0~199 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=435e2bc75797b14bc27dc4048b7fa1f3caa446f1;p=thirdparty%2Fcurl.git Removed an extraneous \n that violated the SSO daemon protocol This caused fake_ntlm to abort due to an invalid command causing sporadic test 2005 failures. --- diff --git a/lib/http_ntlm.c b/lib/http_ntlm.c index efc38c7d54..79481a46d6 100644 --- a/lib/http_ntlm.c +++ b/lib/http_ntlm.c @@ -962,7 +962,7 @@ CURLcode Curl_output_ntlm_sso(struct connectdata *conn, conn->response_header = NULL; break; case NTLMSTATE_TYPE2: - input = aprintf("TT %s\n", conn->challenge_header); + input = aprintf("TT %s", conn->challenge_header); if(!input) return CURLE_OUT_OF_MEMORY; res = sso_ntlm_response(conn, diff --git a/tests/server/fake_ntlm.c b/tests/server/fake_ntlm.c index 2fff0b3e82..53f79c0591 100644 --- a/tests/server/fake_ntlm.c +++ b/tests/server/fake_ntlm.c @@ -220,7 +220,7 @@ int main(int argc, char *argv[]) } } - while(fgets(buf, 1024, stdin)) { + while(fgets(buf, sizeof(buf), stdin)) { if(strcmp(buf, type1_input) == 0) { stream=fopen(filename, "rb"); if(!stream) {