chiark
/
gitweb
/
~ian
/
secnet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Import release 0.1.16
[secnet.git]
/
secnet.c
diff --git
a/secnet.c
b/secnet.c
index bef236dda9a2b466fad8636e7d51749b7eaaa5e6..efe52b356048bc2e44ca0ac93939bd6edae90bf0 100644
(file)
--- a/
secnet.c
+++ b/
secnet.c
@@
-263,10
+263,7
@@
static void run(void)
int timeout;
struct pollfd *fds;
int timeout;
struct pollfd *fds;
- fds=alloca(sizeof(*fds)*total_nfds);
- if (!fds) {
- fatal("run: couldn't alloca");
- }
+ fds=safe_malloc(sizeof(*fds)*total_nfds, "run");
Message(M_NOTICE,"%s [%d]: starting\n",version,secnet_pid);
Message(M_NOTICE,"%s [%d]: starting\n",version,secnet_pid);
@@
-309,6
+306,7
@@
static void run(void)
}
} while (rv<0);
} while (!finished);
}
} while (rv<0);
} while (!finished);
+ free(fds);
}
static void droppriv(void)
}
static void droppriv(void)