fixed crash in modcmd.c
[NeonServV5.git] / 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;