fixed crash in modcmd.c
authorpk910 <philipp@zoelle1.de>
Tue, 17 Jan 2012 14:35:56 +0000 (15:35 +0100)
committerpk910 <philipp@zoelle1.de>
Tue, 17 Jan 2012 14:35:56 +0000 (15:35 +0100)
src/modcmd.c

index ea8b416486f66b89d95a1cf28cd23d7071c6d146..629435d9a672e2f64e359bd9164fe2fbdd7d0265 100644 (file)
@@ -159,7 +159,7 @@ static struct cmd_binding *modcmd_linker_command(struct ClientSocket *client, st
                 break;
         }
         *args_ptr = args;
-        if(cbind->func->func == modcmd_linker) {
+        if(cbind && cbind->func->func == modcmd_linker) {
             return modcmd_linker_command(client, user, cbind, bind_index, args_ptr);
         }
         return cbind;