X-Git-Url: http://www.project-moonshot.org/gitweb/?p=trust_router.git;a=blobdiff_plain;f=tr%2Ftr_trp.c;h=9f9c558d4707c6b23d5c8fd04e6447ef24f80d5e;hp=79a9a27f3505414ad3ba1fbacba835bd774a54e2;hb=81a61f8c6064bf52ff2a40a3d28e6ee5b2e478d4;hpb=e404e4c6cbddaca8fcb9a563ce20fb19d6a722a3 diff --git a/tr/tr_trp.c b/tr/tr_trp.c index 79a9a27..9f9c558 100644 --- a/tr/tr_trp.c +++ b/tr/tr_trp.c @@ -114,7 +114,7 @@ static int tr_trps_gss_handler(gss_name_t client_name, gss_buffer_t gss_name, tr_debug("tr_trps_gss_handler()"); - if ((!client_name) || (!gss_name) || (!trps) || (!cfg_mgr)) { + if ((!client_name) || (!trps) || (!cfg_mgr)) { tr_debug("tr_trps_gss_handler: Bad parameters."); return -1; } @@ -884,7 +884,11 @@ void tr_config_changed(TR_CFG *new_cfg, void *cookie) tr_debug("tr_config_changed: freeing tr->mons->authorized_gss_names"); tr_gss_names_free(tr->mons->authorized_gss_names); } - tr->mons->authorized_gss_names = tr_gss_names_dup(tr->mons, new_cfg->internal->monitoring_credentials); + if (new_cfg->internal->monitoring_credentials != NULL) { + tr->mons->authorized_gss_names = tr_gss_names_dup(tr->mons, new_cfg->internal->monitoring_credentials); + } else { + tr->mons->authorized_gss_names = tr_gss_names_new(tr->mons); + } if (tr->mons->authorized_gss_names == NULL) { tr_err("tr_config_changed: Error configuring monitoring credentials"); }