From a04002a2923eab426de8bf2d471cb2b226e6f149 Mon Sep 17 00:00:00 2001 From: Jilles Tjoelker Date: Sun, 28 Feb 2010 16:45:25 +0100 Subject: [PATCH] Fix memory leak on /rehash bans. We do not have the 'oper' field in klines yet. --- src/bandbi.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/bandbi.c b/src/bandbi.c index 08ff0c7..4de4422 100644 --- a/src/bandbi.c +++ b/src/bandbi.c @@ -170,7 +170,8 @@ bandb_handle_ban(char *parv[], int parc) aconf->user = rb_strdup(parv[para++]); aconf->host = rb_strdup(parv[para++]); - aconf->passwd = rb_strdup(parv[para++]); + /* We do not have the 'oper' field yet. */ + para++; switch (parv[0][0]) {