don't use data after clearing decriptor

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@5955 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Johan Danielsson
1999-04-15 13:21:16 +00:00
parent a92fa5a676
commit f92fa946cb

View File

@@ -530,10 +530,10 @@ handle_tcp(struct descr *d, int index, int min_free)
"That page doesn't exist, maybe you are looking for "
"<A HREF=\"http://www.pdc.kth.se/heimdal\">Heimdal</A>?\r\n";
write(d[index].s, msg, strlen(msg));
clear_descr(d + index);
kdc_log(0, "HTTP request from %s is non KDC request", addr);
kdc_log(5, "Request: %s", t);
free(data);
clear_descr(d + index);
goto out;
}
{