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.
This commit is contained in:
Dan Fandrich 2011-07-28 12:41:44 -07:00
parent 99848d3dab
commit 435e2bc757
2 changed files with 2 additions and 2 deletions

View File

@ -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,

View File

@ -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) {