summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimo Sorce <simo@redhat.com>2012-02-09 00:38:36 -0500
committerSimo Sorce <simo@redhat.com>2012-02-09 01:36:07 -0500
commitcfeb453adb75f2d0557388484335a56c5d557a9a (patch)
tree1134cd10d70f180bce0b3a74fe4dae43cf5ec887
parentdfc61df4a83232c74018429080ad61a96a918df6 (diff)
downloadgss-proxy-cfeb453adb75f2d0557388484335a56c5d557a9a.tar.gz
gss-proxy-cfeb453adb75f2d0557388484335a56c5d557a9a.tar.xz
gss-proxy-cfeb453adb75f2d0557388484335a56c5d557a9a.zip
Retrieve the buffer when needed, right before accept_sec_context
-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;