Set error string.

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@20306 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Love Hörnquist Åstrand
2007-04-11 11:15:55 +00:00
parent f523c291f5
commit 25fc4d469a

View File

@@ -1,5 +1,5 @@
/* /*
* Copyright (c) 1997-2006 Kungliga Tekniska H<>gskolan * Copyright (c) 1997-2007 Kungliga Tekniska H<>gskolan
* (Royal Institute of Technology, Stockholm, Sweden). * (Royal Institute of Technology, Stockholm, Sweden).
* All rights reserved. * All rights reserved.
* *
@@ -107,7 +107,7 @@ krb5_recvauth_match_version(krb5_context context,
return ret; return ret;
} }
if (n == 0) { if (n == 0) {
krb5_clear_error_string (context); krb5_set_error_string (context, "Failed to receive sendauth data");
return KRB5_SENDAUTH_BADAUTHVERS; return KRB5_SENDAUTH_BADAUTHVERS;
} }
len = ntohl(len); len = ntohl(len);