1
0
Fork 0

admin port fixes

This commit is contained in:
bagyenda 2009-01-12 15:12:02 +00:00
parent 591c61f094
commit 76cb3e6f5b
3 changed files with 6 additions and 4 deletions

View File

@ -1,3 +1,5 @@
2009-01-12 P. A. Bagyenda <bagyenda@dsmagic.com>
* Minor fixes: Output from admin interfaces always valid XML
2008-12-24 P. A. Bagyenda <bagyenda@dsmagic.com>
* Improved MM1 performance
2008-12-17 P. A. Bagyenda <bagyenda@dsmagic.com>

View File

@ -657,7 +657,7 @@ MmscGrp *start_mmsc_from_conf(mCfg *cfg, mCfgGrp *x, gwthread_func_t *mmsc_handl
/* finally start the thingie. */
mmsbox_start_mmsc_conn(m, mmsc_handler_func, errors, warnings);
if (dict_put_once(mmscs, m->id, m) == 0) {
WARNING("Failed to load mmsc <%s>. ID is not unique!", octstr_get_cstr(m->id));
WARNING("Failed to load mmsc [%s]. ID is not unique!", octstr_get_cstr(m->id));
mmsbox_stop_mmsc_conn_real(m);
free_mmsc_struct(m);
m = NULL;
@ -991,7 +991,7 @@ static void admin_handler(void *unused)
flg ? "Invalid/empty password" : "IP not allowed");
if (flg) {/* means it is allowed by IP */
rstatus = HTTP_UNAUTHORIZED;
rbody = octstr_imm("Auth failed");
rbody = octstr_imm("<error>Auth failed</error>");
}
} else {
Octstr *mmc_id = http_cgi_variable(cgivars, "mmsc-id");

View File

@ -521,7 +521,7 @@ MmsVasp *mmsc_load_vasp_from_conf(MmscSettings *m, mCfgGrp *grp, List *errors, L
mv->stats.start_time = time(NULL);
if (dict_put_once(m->vasp_list, mv->id, mv) == 0) {
ERROR("Failed to load vasp <%S>. ID is not unique!", mv->id);
ERROR("Failed to load vasp [%S]. ID is not unique!", mv->id);
free_vasp(mv);
} else
ret = mv;
@ -964,7 +964,7 @@ static void admin_handler(MmscSettings *settings)
flg ? "Invalid/empty password" : "IP not allowed");
if (flg) {/* means it is allowed by IP */
rstatus = HTTP_UNAUTHORIZED;
rbody = octstr_imm("Auth failed");
rbody = octstr_imm("<error>Auth failed</error>");
}
} else {
Octstr *vasp_id = http_cgi_variable(cgivars, "vasp-id");