diff options
author | Matt Johnston <matt@ucc.asn.au> | 2015-12-02 22:37:20 +0800 |
---|---|---|
committer | Matt Johnston <matt@ucc.asn.au> | 2015-12-02 22:37:20 +0800 |
commit | e81b6fbc6ee3dc13ffab54a790647f9c2caeabbe (patch) | |
tree | 8aceb20972058779114f806a235044989fd5631a /runopts.h | |
parent | f64a50f31995dc12bba316f3649e3e5f6ee64f90 (diff) |
ports and addresses must be malloced to avoid segfault on exit
Diffstat (limited to 'runopts.h')
-rw-r--r-- | runopts.h | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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]; |