projects
/
NeonServV5.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
added new multi log system
[NeonServV5.git]
/
src
/
modules
/
global.mod
/
cmd_global_register.c
diff --git
a/src/modules/global.mod/cmd_global_register.c
b/src/modules/global.mod/cmd_global_register.c
index 3e69c2674cb17d3e2e5a675e45a04672fd86728b..03fa9323f4294f3183a07e4707eea3ceacb7fe58 100644
(file)
--- 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) {
//but first lookup the auth to check if it really exists
struct global_cmd_register_cache *cache = malloc(sizeof(*cache));
if (!cache) {
- p
error("malloc() failed"
);
+ p
rintf_log("global", LOG_ERROR, "%s:%d malloc() failed", __FILE__, __LINE__
);
return;
}
cache->client = client;
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) {
} else {
struct global_cmd_register_cache *cache = malloc(sizeof(*cache));
if (!cache) {
- p
error("malloc() failed"
);
+ p
rintf_log("global", LOG_ERROR, "%s:%d malloc() failed", __FILE__, __LINE__
);
return;
}
cache->client = client;
return;
}
cache->client = client;