X-Git-Url: http://git.pk910.de/?p=NeonServV5.git;a=blobdiff_plain;f=src%2Fmodules%2Fglobal.mod%2Fcmd_global_register.c;h=03fa9323f4294f3183a07e4707eea3ceacb7fe58;hp=3e69c2674cb17d3e2e5a675e45a04672fd86728b;hb=ee39770362f69ced5b52104b622582e882af0b77;hpb=88751acefe20e568fc945d7e5f5c11e0a9c7be60 diff --git a/src/modules/global.mod/cmd_global_register.c b/src/modules/global.mod/cmd_global_register.c index 3e69c26..03fa932 100644 --- a/src/modules/global.mod/cmd_global_register.c +++ b/src/modules/global.mod/cmd_global_register.c @@ -96,7 +96,7 @@ CMD_BIND(global_cmd_register) { //but first lookup the auth to check if it really exists struct global_cmd_register_cache *cache = malloc(sizeof(*cache)); if (!cache) { - perror("malloc() failed"); + printf_log("global", LOG_ERROR, "%s:%d malloc() failed", __FILE__, __LINE__); return; } cache->client = client; @@ -125,7 +125,7 @@ CMD_BIND(global_cmd_register) { } else { struct global_cmd_register_cache *cache = malloc(sizeof(*cache)); if (!cache) { - perror("malloc() failed"); + printf_log("global", LOG_ERROR, "%s:%d malloc() failed", __FILE__, __LINE__); return; } cache->client = client;