make http parser not exit out early

This commit is contained in:
Love Hornquist Astrand
2013-02-10 23:20:37 -08:00
parent c1423a8eea
commit 6020e6c5b4

View File

@@ -549,7 +549,7 @@ recv_http(krb5_context context, struct host *host, krb5_data *data)
len = host->data.length - (p - (char *)host->data.data);
if (len < 4)
return KRB5KRB_ERR_FIELD_TOOLONG;
return -1;
_krb5_get_int(p, &rep_len, 4);
if (len < rep_len)