From e81b6fbc6ee3dc13ffab54a790647f9c2caeabbe Mon Sep 17 00:00:00 2001 From: Matt Johnston Date: Wed, 2 Dec 2015 22:37:20 +0800 Subject: ports and addresses must be malloced to avoid segfault on exit --- runopts.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'runopts.h') 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]; -- cgit v1.2.3