X-Git-Url: http://git.pk910.de/?a=blobdiff_plain;f=src%2Fmodules%2Fglobal.mod%2Fcmd_global_register.c;h=03fa9323f4294f3183a07e4707eea3ceacb7fe58;hb=ee39770362f69ced5b52104b622582e882af0b77;hp=0e4445ba31a7272bab6cacc7c3eff05571b47404;hpb=4d078d69cd2308cc835d7d8f1117e9b18ec37b61;p=NeonServV5.git diff --git a/src/modules/global.mod/cmd_global_register.c b/src/modules/global.mod/cmd_global_register.c index 0e4445b..03fa932 100644 --- a/src/modules/global.mod/cmd_global_register.c +++ b/src/modules/global.mod/cmd_global_register.c @@ -1,4 +1,4 @@ -/* cmd_global_register.c - NeonServ v5.5 +/* cmd_global_register.c - NeonServ v5.6 * Copyright (C) 2011-2012 Philipp Kreil (pk910) * * This program is free software: you can redistribute it and/or modify @@ -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;