X-Git-Url: http://git.tuebingen.mpg.de/?a=blobdiff_plain;f=http_recv.c;h=8d2add19091f4894814c1aeeaeeefee5d5c8c19e;hb=2934ee80367ee9d50b99ed8d7f672d1a397b4ce0;hp=32c9e7b9af6b24ca0fc93f3d7d65fce15c32e03a;hpb=fca08641935a5bdf6570a14e0b7aeed536745060;p=paraslash.git diff --git a/http_recv.c b/http_recv.c index 32c9e7b9..8d2add19 100644 --- a/http_recv.c +++ b/http_recv.c @@ -105,7 +105,7 @@ static int http_recv_post_monitor(struct sched *s, void *context) return 0; } if (phd->status == HTTP_SENT_GET_REQUEST) { - ret = read_pattern(rn->fd, HTTP_OK_MSG, strlen(HTTP_OK_MSG)); + ret = read_and_compare(rn->fd, HTTP_OK_MSG); if (ret < 0) { PARA_ERROR_LOG("did not receive HTTP OK message\n"); goto out;