projects
/
NeonServV5.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
updated cmd_version information
[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 f568ff0004e9d7e479b8ebacf9f100d7955b6948..8753cc30ac74442275e9b83c7a6daa4dfc057de0 100644
(file)
--- a/
src/modules/global.mod/cmd_global_setaccess.c
+++ b/
src/modules/global.mod/cmd_global_setaccess.c
@@
-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;