From: Greg Hudson Date: Mon, 27 Jun 2011 21:07:20 +0000 (+0000) Subject: Add a missing call in t_kgss_user.c X-Git-Tag: krb5-1.10-alpha1~380 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=9f64a8329f15ff80d0f38e91e4781be1399d1f41;p=krb5.git 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(). git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@24993 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/util/gss-kernel-lib/t_kgss_user.c b/src/util/gss-kernel-lib/t_kgss_user.c index 42f835df6..15fca238a 100644 --- a/src/util/gss-kernel-lib/t_kgss_user.c +++ b/src/util/gss-kernel-lib/t_kgss_user.c @@ -384,6 +384,7 @@ main(int argc, char **argv) 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);