admin port fixes
This commit is contained in:
parent
591c61f094
commit
76cb3e6f5b
|
@ -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>
|
2008-12-24 P. A. Bagyenda <bagyenda@dsmagic.com>
|
||||||
* Improved MM1 performance
|
* Improved MM1 performance
|
||||||
2008-12-17 P. A. Bagyenda <bagyenda@dsmagic.com>
|
2008-12-17 P. A. Bagyenda <bagyenda@dsmagic.com>
|
||||||
|
|
|
@ -657,7 +657,7 @@ MmscGrp *start_mmsc_from_conf(mCfg *cfg, mCfgGrp *x, gwthread_func_t *mmsc_handl
|
||||||
/* finally start the thingie. */
|
/* finally start the thingie. */
|
||||||
mmsbox_start_mmsc_conn(m, mmsc_handler_func, errors, warnings);
|
mmsbox_start_mmsc_conn(m, mmsc_handler_func, errors, warnings);
|
||||||
if (dict_put_once(mmscs, m->id, m) == 0) {
|
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);
|
mmsbox_stop_mmsc_conn_real(m);
|
||||||
free_mmsc_struct(m);
|
free_mmsc_struct(m);
|
||||||
m = NULL;
|
m = NULL;
|
||||||
|
@ -991,7 +991,7 @@ static void admin_handler(void *unused)
|
||||||
flg ? "Invalid/empty password" : "IP not allowed");
|
flg ? "Invalid/empty password" : "IP not allowed");
|
||||||
if (flg) {/* means it is allowed by IP */
|
if (flg) {/* means it is allowed by IP */
|
||||||
rstatus = HTTP_UNAUTHORIZED;
|
rstatus = HTTP_UNAUTHORIZED;
|
||||||
rbody = octstr_imm("Auth failed");
|
rbody = octstr_imm("<error>Auth failed</error>");
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
Octstr *mmc_id = http_cgi_variable(cgivars, "mmsc-id");
|
Octstr *mmc_id = http_cgi_variable(cgivars, "mmsc-id");
|
||||||
|
|
|
@ -521,7 +521,7 @@ MmsVasp *mmsc_load_vasp_from_conf(MmscSettings *m, mCfgGrp *grp, List *errors, L
|
||||||
mv->stats.start_time = time(NULL);
|
mv->stats.start_time = time(NULL);
|
||||||
|
|
||||||
if (dict_put_once(m->vasp_list, mv->id, mv) == 0) {
|
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);
|
free_vasp(mv);
|
||||||
} else
|
} else
|
||||||
ret = mv;
|
ret = mv;
|
||||||
|
@ -964,7 +964,7 @@ static void admin_handler(MmscSettings *settings)
|
||||||
flg ? "Invalid/empty password" : "IP not allowed");
|
flg ? "Invalid/empty password" : "IP not allowed");
|
||||||
if (flg) {/* means it is allowed by IP */
|
if (flg) {/* means it is allowed by IP */
|
||||||
rstatus = HTTP_UNAUTHORIZED;
|
rstatus = HTTP_UNAUTHORIZED;
|
||||||
rbody = octstr_imm("Auth failed");
|
rbody = octstr_imm("<error>Auth failed</error>");
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
Octstr *vasp_id = http_cgi_variable(cgivars, "vasp-id");
|
Octstr *vasp_id = http_cgi_variable(cgivars, "vasp-id");
|
||||||
|
|
Loading…
Reference in New Issue