From cfeb453adb75f2d0557388484335a56c5d557a9a Mon Sep 17 00:00:00 2001 From: Simo Sorce Date: Thu, 9 Feb 2012 00:38:36 -0500 Subject: Retrieve the buffer when needed, right before accept_sec_context --- proxy/tests/cli_srv_comm.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/proxy/tests/cli_srv_comm.c b/proxy/tests/cli_srv_comm.c index baff865..ef0a8b1 100644 --- a/proxy/tests/cli_srv_comm.c +++ b/proxy/tests/cli_srv_comm.c @@ -311,12 +311,6 @@ void *server_thread(void *pvt) target_buf.value = (void *)data->target; target_buf.length = strlen(data->target) + 1; - ret = gp_recv_buffer(data->srv_pipe[0], buffer, &buflen); - if (ret) { - fprintf(stdout, "Failed to get data from client!\n"); - goto done; - } - /* import name family functions tests */ ret_maj = gpm_import_name(&ret_min, &target_buf, GSS_C_NT_HOSTBASED_SERVICE, &target_name); @@ -415,6 +409,12 @@ void *server_thread(void *pvt) goto done; } + ret = gp_recv_buffer(data->srv_pipe[0], buffer, &buflen); + if (ret) { + fprintf(stdout, "Failed to get data from client!\n"); + goto done; + } + in_token.value = buffer; in_token.length = buflen; -- cgit