Mercurial > dropbear
diff runopts.h @ 1197:86a9e0204c03
ports and addresses must be malloced to avoid segfault on exit
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Wed, 02 Dec 2015 22:37:20 +0800 |
parents | 089b8e91472b |
children | 81063d78fe69 |
line wrap: on
line diff
--- a/runopts.h Mon Nov 30 21:13:03 2015 +0800 +++ b/runopts.h Wed Dec 02 22:37:20 2015 +0800 @@ -72,7 +72,8 @@ 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];