Fix typo in ap_initator_portal.
MFC after: 1 week
This commit is contained in:
parent
66585c3fe2
commit
a3434cdc6b
@ -362,7 +362,7 @@ auth_portal_new(struct auth_group *ag, const char *portal)
|
|||||||
if (ap == NULL)
|
if (ap == NULL)
|
||||||
log_err(1, "calloc");
|
log_err(1, "calloc");
|
||||||
ap->ap_auth_group = ag;
|
ap->ap_auth_group = ag;
|
||||||
ap->ap_initator_portal = checked_strdup(portal);
|
ap->ap_initiator_portal = checked_strdup(portal);
|
||||||
mask = str = checked_strdup(portal);
|
mask = str = checked_strdup(portal);
|
||||||
net = strsep(&mask, "/");
|
net = strsep(&mask, "/");
|
||||||
if (net[0] == '[')
|
if (net[0] == '[')
|
||||||
@ -414,7 +414,7 @@ auth_portal_delete(struct auth_portal *ap)
|
|||||||
{
|
{
|
||||||
TAILQ_REMOVE(&ap->ap_auth_group->ag_portals, ap, ap_next);
|
TAILQ_REMOVE(&ap->ap_auth_group->ag_portals, ap, ap_next);
|
||||||
|
|
||||||
free(ap->ap_initator_portal);
|
free(ap->ap_initiator_portal);
|
||||||
free(ap);
|
free(ap);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1683,7 +1683,7 @@ conf_print(struct conf *conf)
|
|||||||
auth_name->an_initator_name);
|
auth_name->an_initator_name);
|
||||||
TAILQ_FOREACH(auth_portal, &ag->ag_portals, ap_next)
|
TAILQ_FOREACH(auth_portal, &ag->ag_portals, ap_next)
|
||||||
fprintf(stderr, "\t initiator-portal %s\n",
|
fprintf(stderr, "\t initiator-portal %s\n",
|
||||||
auth_portal->ap_initator_portal);
|
auth_portal->ap_initiator_portal);
|
||||||
fprintf(stderr, "}\n");
|
fprintf(stderr, "}\n");
|
||||||
}
|
}
|
||||||
TAILQ_FOREACH(pg, &conf->conf_portal_groups, pg_next) {
|
TAILQ_FOREACH(pg, &conf->conf_portal_groups, pg_next) {
|
||||||
|
@ -69,7 +69,7 @@ struct auth_name {
|
|||||||
struct auth_portal {
|
struct auth_portal {
|
||||||
TAILQ_ENTRY(auth_portal) ap_next;
|
TAILQ_ENTRY(auth_portal) ap_next;
|
||||||
struct auth_group *ap_auth_group;
|
struct auth_group *ap_auth_group;
|
||||||
char *ap_initator_portal;
|
char *ap_initiator_portal;
|
||||||
struct sockaddr_storage ap_sa;
|
struct sockaddr_storage ap_sa;
|
||||||
int ap_mask;
|
int ap_mask;
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user