callerid: unregister usermode +g if usermode +G cannot be allocated

This commit is contained in:
Ariadne Conill 2020-06-27 15:59:44 +00:00
parent 5419d3c286
commit 915bb5614b

View file

@ -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;
}