From 915bb5614b1233148a4ec1d302ebd21d6451b7e4 Mon Sep 17 00:00:00 2001 From: Ariadne Conill Date: Sat, 27 Jun 2020 15:59:44 +0000 Subject: [PATCH] callerid: unregister usermode +g if usermode +G cannot be allocated --- modules/um_callerid.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/um_callerid.c b/modules/um_callerid.c index 1e8a7423..616ac87f 100644 --- a/modules/um_callerid.c +++ b/modules/um_callerid.c @@ -57,6 +57,8 @@ um_callerid_modinit(void) user_modes['G'] = find_umode_slot(); if (!user_modes['G']) { + user_modes['g'] = 0; + ierror("um_callerid: unable to allocate usermode slot for +G; unloading module."); return -1; }