summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--proxy/tests/cli_srv_comm.c12
1 files 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;