First patch removes some unused code relates to cookies. Second one removes commented code in dpi/cookies.c I am sorry, them were my fault. Patchs works with current cvs. Diego. 8<------------------------------------------------------------------- diff -pru dillo-0.8.6-pre-cvs20060129/src/IO/dpi.c dillo-work/src/IO/dpi.c --- dillo-0.8.6-pre-cvs20060129/src/IO/dpi.c 2006-01-06 00:38:05.000000000 +0100 +++ dillo-work/src/IO/dpi.c 2006-02-13 03:59:11.000000000 +0100 @@ -256,11 +256,6 @@ static void Dpi_parse_token(conn_data_t a_Chain_fcb(OpSend, conn->InfoRecv, msg, cmd); g_free(msg); - } else if (strcmp(cmd, "get_cookie_answer") == 0) { - msg = a_Dpip_get_attr(conn->Buf + conn->TokIdx, conn->TokSize, "cookie"); - a_Chain_fcb(OpSend, conn->InfoRecv, msg, cmd); - g_free(msg); - } else if (strcmp(cmd, "dialog") == 0) { /* For now will send the dpip tag... */ a_Chain_fcb(OpSend, conn->InfoRecv, tag, cmd); 8<------------------------------------------------------------------- diff -pru dillo-0.8.6-pre-cvs20060129/dpi/cookies.c dillo-work/dpi/cookies.c --- dillo-0.8.6-pre-cvs20060129/dpi/cookies.c 2006-01-21 04:00:27.000000000 +0100 +++ dillo-work/dpi/cookies.c 2006-02-13 04:12:45.000000000 +0100 @@ -1375,10 +1375,7 @@ static int srv_parse_buf(SockHandler *sh g_free(host); cmd = a_Dpip_build_cmd("cmd=%s cookie=%s", "get_cookie_answer", cookie); -/* - cmd = g_strdup_printf("<dpi cmd='get_cookie_answer' cookie='%s'>", - cookie); -*/ + if (sock_handler_write_str(sh, cmd, 1)) { g_free(cookie); g_free(cmd);
participants (1)
-
Diego Sáenz