(handle_v4): check for termination

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@8741 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Johan Danielsson
2000-07-21 23:29:40 +00:00
parent be27bbbffe
commit ad1cf0ae18

View File

@@ -939,6 +939,9 @@ handle_v4(krb5_context context,
krb5_errx (context, 1, "getpeername");
while(1) {
doing_useful_work = 0;
if(term_flag)
exit(0);
if(first) {
/* first time around, we have already read len, and two
bytes of the version string */
@@ -969,6 +972,7 @@ handle_v4(krb5_context context,
if (n < 0)
krb5_err (context, 1, errno, "krb5_net_read");
}
doing_useful_work = 1;
decode_packet(context, &admin_addr, &client_addr,
message, &reply);
krb5_data_free(&message);