svn rev #24993: trunk/src/util/gss-kernel-lib/
ghudson@MIT.EDU
ghudson at MIT.EDU
Mon Jun 27 17:07:20 EDT 2011
http://src.mit.edu/fisheye/changelog/krb5/?cs=24993
Commit By: ghudson
Log Message:
Add a missing call in t_kgss_user.c.
The userland side of the gss kernel subset tests was missing a call to
read_iov_token() at the end of the operation sequence. This mistake
caused a race condition where the child could either exit successfully
(if it finished send_iov_token() before the parent closed its end of
the pipe) or could fail with an EPIPE error from write().
Changed Files:
U trunk/src/util/gss-kernel-lib/t_kgss_user.c
Modified: trunk/src/util/gss-kernel-lib/t_kgss_user.c
===================================================================
--- trunk/src/util/gss-kernel-lib/t_kgss_user.c 2011-06-27 14:49:44 UTC (rev 24992)
+++ trunk/src/util/gss-kernel-lib/t_kgss_user.c 2011-06-27 21:07:20 UTC (rev 24993)
@@ -384,6 +384,7 @@
send_iov_token(initiator, to_child);
read_wrap_token(initiator, from_child);
read_mic_token(initiator, from_child);
+ read_iov_token(initiator, from_child);
cleanup_context(initiator);
close(to_child);
close(from_child);
More information about the cvs-krb5
mailing list