(process_msg): check for short reads

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@7460 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Johan Danielsson
1999-12-02 14:49:20 +00:00
parent 94457ce63d
commit cbcd6a9d98

View File

@@ -271,6 +271,11 @@ process_msg (krb5_context context, slave *s, int log_fd,
if (ret)
return 1;
if(in->length == 0) {
krb5_warnx(context, "process_msg: short message");
return 1;
}
ret = krb5_rd_priv (context, s->ac, &in, &out, NULL);
krb5_data_free (&in);
if (ret) {