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
/
NeonServ.mod
/
cmd_neonserv_assignrank.c
diff --git
a/src/modules/NeonServ.mod/cmd_neonserv_assignrank.c
b/src/modules/NeonServ.mod/cmd_neonserv_assignrank.c
index 9b4962711c9becfbeee688dd9d424d67d356bf7b..19a906a3df20e89898ce279c4ddcf60588d5c21f 100644
(file)
--- a/
src/modules/NeonServ.mod/cmd_neonserv_assignrank.c
+++ b/
src/modules/NeonServ.mod/cmd_neonserv_assignrank.c
@@
-59,7
+59,7
@@
CMD_BIND(neonserv_cmd_assignrank) {
//but first lookup the auth to check if it really exists
struct neonserv_cmd_assignrank_cache *cache = malloc(sizeof(*cache));
if (!cache) {
//but first lookup the auth to check if it really exists
struct neonserv_cmd_assignrank_cache *cache = malloc(sizeof(*cache));
if (!cache) {
- p
error("malloc() failed"
);
+ p
rintf_log("neonserv", LOG_ERROR, "%s:%d malloc() failed", __FILE__, __LINE__
);
return;
}
cache->client = client;
return;
}
cache->client = client;
@@
-85,7
+85,7
@@
CMD_BIND(neonserv_cmd_assignrank) {
} else {
struct neonserv_cmd_assignrank_cache *cache = malloc(sizeof(*cache));
if (!cache) {
} else {
struct neonserv_cmd_assignrank_cache *cache = malloc(sizeof(*cache));
if (!cache) {
- p
error("malloc() failed"
);
+ p
rintf_log("neonserv", LOG_ERROR, "%s:%d malloc() failed", __FILE__, __LINE__
);
return;
}
cache->client = client;
return;
}
cache->client = client;