projects
/
citadel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
4033b8e
)
RNCFG: fix room access check function for posters; this was still using an old method.
author
Wilfried Goesgens
<dothebart@citadel.org>
Sat, 9 Feb 2013 14:38:27 +0000
(15:38 +0100)
committer
Wilfried Goesgens
<dothebart@citadel.org>
Sat, 9 Feb 2013 14:38:27 +0000
(15:38 +0100)
citadel/netconfig.c
patch
|
blob
|
history
diff --git
a/citadel/netconfig.c
b/citadel/netconfig.c
index 52adbbddff79cdb60730b3893a4c740a42399562..0f89d4474aa3468ed0ef0919a94f52a0232d8afa 100644
(file)
--- a/
citadel/netconfig.c
+++ b/
citadel/netconfig.c
@@
-843,7
+843,6
@@
int CtdlNetconfigCheckRoomaccess(
const char* RemoteIdentifier)
{
OneRoomNetCfg *RNCfg;
const char* RemoteIdentifier)
{
OneRoomNetCfg *RNCfg;
- char filename[SIZ];
int found;
if (RemoteIdentifier == NULL)
int found;
if (RemoteIdentifier == NULL)
@@
-852,18
+851,18
@@
int CtdlNetconfigCheckRoomaccess(
return (ERROR + USERNAME_REQUIRED);
}
return (ERROR + USERNAME_REQUIRED);
}
- assoc_file_name(filename, sizeof filename, &CC->room, ctdl_netcfg_dir);
begin_critical_section(S_NETCONFIGS);
begin_critical_section(S_NETCONFIGS);
- if (!ReadRoomNetConfigFile(&RNCfg, filename))
+ RNCfg = CtdlGetNetCfgForRoom (CC->room.QRnumber);
+ if (RNCfg == NULL)
{
end_critical_section(S_NETCONFIGS);
snprintf(errmsgbuf, n,
"This mailing list only accepts posts from subscribers.");
return (ERROR + NO_SUCH_USER);
}
{
end_critical_section(S_NETCONFIGS);
snprintf(errmsgbuf, n,
"This mailing list only accepts posts from subscribers.");
return (ERROR + NO_SUCH_USER);
}
- end_critical_section(S_NETCONFIGS);
found = is_recipient (RNCfg, RemoteIdentifier);
found = is_recipient (RNCfg, RemoteIdentifier);
- vFreeRoomNetworkStruct(&RNCfg);
+ end_critical_section(S_NETCONFIGS);
+
if (found) {
return (0);
}
if (found) {
return (0);
}