From 85972c7ca91998906a3852f7343f6b1c74f02066 Mon Sep 17 00:00:00 2001 From: Ken Raeburn Date: Tue, 29 Nov 2005 04:40:49 +0000 Subject: [PATCH] * network.c (listen_and_process): Make local variable 'sout' static git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17513 dc483132-0cff-0310-8789-dd5450dbe970 --- src/kdc/ChangeLog | 5 +++++ src/kdc/network.c | 5 ++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/src/kdc/ChangeLog b/src/kdc/ChangeLog index 5d39b02ae..d0b588580 100644 --- a/src/kdc/ChangeLog +++ b/src/kdc/ChangeLog @@ -1,3 +1,8 @@ +2005-11-28 Ken Raeburn + + * network.c (listen_and_process): Make local variable 'sout' + static. + 2005-11-17 Ken Raeburn * fakeka.c: Include errno.h. diff --git a/src/kdc/network.c b/src/kdc/network.c index 658039a3e..af5e7d036 100644 --- a/src/kdc/network.c +++ b/src/kdc/network.c @@ -1017,7 +1017,10 @@ krb5_error_code listen_and_process(const char *prog) { int nfound; - struct select_state sout; + /* This struct contains 3 fd_set objects; on some platforms, they + can be rather large. Making this static avoids putting all + that junk on the stack. */ + static struct select_state sout; int i, sret; krb5_error_code err; -- 2.26.2