From c03f7b30c4b618315cdcb8b8ae6d205879d03d21 Mon Sep 17 00:00:00 2001 From: Sam Dodrill Date: Sat, 11 Jan 2014 17:49:21 -0800 Subject: [PATCH] bandb: Don't attempt to write to a NULL helper. Though without a bandb binary your installation is completely screwed. References atheme@charybdis/c8729b08fb171d80030155c638a65aff93cb1a45 --- src/bandbi.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/bandbi.c b/src/bandbi.c index e861b98..e1e3917 100644 --- a/src/bandbi.c +++ b/src/bandbi.c @@ -122,6 +122,9 @@ void bandb_add(bandb_type type, struct Client *source_p, const char *mask1, const char *mask2, const char *reason, const char *oper_reason, int perm) { + if(bandb_helper == NULL) + return; + static char buf[BUFSIZE]; rb_snprintf(buf, sizeof(buf), "%c %s ", bandb_add_letter[type], mask1); @@ -145,6 +148,9 @@ static char bandb_del_letter[LAST_BANDB_TYPE] = { void bandb_del(bandb_type type, const char *mask1, const char *mask2) { + if(bandb_helper == NULL) + return; + static char buf[BUFSIZE]; buf[0] = '\0';