diff options
author | Greg Hudson <ghudson@mit.edu> | 2011-06-27 21:07:20 +0000 |
---|---|---|
committer | Greg Hudson <ghudson@mit.edu> | 2011-06-27 21:07:20 +0000 |
commit | 9f64a8329f15ff80d0f38e91e4781be1399d1f41 (patch) | |
tree | 92abcf93053a95d08c433f7890b141a10757e5a9 /src | |
parent | e9c1c57a9c4d8b14c04d1534c5520f63a0a5b311 (diff) | |
download | krb5-9f64a8329f15ff80d0f38e91e4781be1399d1f41.tar.gz krb5-9f64a8329f15ff80d0f38e91e4781be1399d1f41.tar.xz krb5-9f64a8329f15ff80d0f38e91e4781be1399d1f41.zip |
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
Diffstat (limited to 'src')
-rw-r--r-- | src/util/gss-kernel-lib/t_kgss_user.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/util/gss-kernel-lib/t_kgss_user.c b/src/util/gss-kernel-lib/t_kgss_user.c index 42f835df60..15fca238a5 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); |