diff --git a/kdc/connect.c b/kdc/connect.c index d9a18d951..6a48fd9af 100644 --- a/kdc/connect.c +++ b/kdc/connect.c @@ -665,6 +665,11 @@ handle_http_tcp (krb5_context context, s = (char *)d->buf; + p = strstr(s, "\r\n"); + if (p) + *p = 0; + + p = NULL; t = strtok_r(s, " \t", &p); if (t == NULL) {