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_setaccess.c
diff --git
a/src/modules/global.mod/cmd_global_setaccess.c
b/src/modules/global.mod/cmd_global_setaccess.c
index d8efad4b0afa7723a54716b105351abc3e3c8821..8753cc30ac74442275e9b83c7a6daa4dfc057de0 100644
(file)
--- a/
src/modules/global.mod/cmd_global_setaccess.c
+++ b/
src/modules/global.mod/cmd_global_setaccess.c
@@
-1,4
+1,4
@@
-/* cmd_global_setaccess.c - NeonServ v5.
5
+/* cmd_global_setaccess.c - NeonServ v5.
6
* Copyright (C) 2011-2012 Philipp Kreil (pk910)
*
* This program is free software: you can redistribute it and/or modify
* Copyright (C) 2011-2012 Philipp Kreil (pk910)
*
* This program is free software: you can redistribute it and/or modify
@@
-60,7
+60,7
@@
CMD_BIND(global_cmd_setaccess) {
//but first lookup the auth to check if it really exists
struct global_cmd_setaccess_cache *cache = malloc(sizeof(*cache));
if (!cache) {
//but first lookup the auth to check if it really exists
struct global_cmd_setaccess_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;
@@
-86,7
+86,7
@@
CMD_BIND(global_cmd_setaccess) {
} else {
struct global_cmd_setaccess_cache *cache = malloc(sizeof(*cache));
if (!cache) {
} else {
struct global_cmd_setaccess_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;