From 4ade9da85e3b0619b2dd1f0fed71d6e9ad02fb39 Mon Sep 17 00:00:00 2001 From: Joe Orton Date: Mon, 23 Oct 2023 20:04:40 +0100 Subject: [PATCH] * test/request.c (fail_noserver): Revert use of destroy_and_wait incorrectly added in 4415225be6e76304f6e2140cfbad3c283b2544d0. --- test/request.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/request.c b/test/request.c index 51724b36..210180d0 100644 --- a/test/request.c +++ b/test/request.c @@ -1333,12 +1333,13 @@ static int fail_noserver(const char *hostname, unsigned int port, int code) { ne_session *sess = ne_session_create("http", hostname, port); int ret = any_request(sess, "/foo"); + ne_session_destroy(sess); ONV(ret == NE_OK, ("request to server at %s:%u succeeded?!", hostname, port)); ONV(ret != code, ("request failed with %d not %d", ret, code)); - return destroy_and_wait(sess); + return OK; } static int fail_lookup(void)