summaryrefslogtreecommitdiffhomepage
path: root/runopts.h
diff options
context:
space:
mode:
authorMatt Johnston <matt@ucc.asn.au>2015-12-02 22:37:20 +0800
committerMatt Johnston <matt@ucc.asn.au>2015-12-02 22:37:20 +0800
commite81b6fbc6ee3dc13ffab54a790647f9c2caeabbe (patch)
tree8aceb20972058779114f806a235044989fd5631a /runopts.h
parentf64a50f31995dc12bba316f3649e3e5f6ee64f90 (diff)
ports and addresses must be malloced to avoid segfault on exit
Diffstat (limited to 'runopts.h')
-rw-r--r--runopts.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/runopts.h b/runopts.h
index 62c9bf1..7d6ae06 100644
--- a/runopts.h
+++ b/runopts.h
@@ -72,7 +72,8 @@ typedef struct svr_runopts {
int forkbg;
int usingsyslog;
- /* ports is an array of the portcount listening ports */
+ /* ports and addresses are arrays of the portcount
+ listening ports. strings are malloced. */
char *ports[DROPBEAR_MAX_PORTS];
unsigned int portcount;
char *addresses[DROPBEAR_MAX_PORTS];