Fix typo in ap_initator_portal.

MFC after:	1 week
This commit is contained in:
Alexander Motin 2020-12-29 13:32:05 -05:00
parent 66585c3fe2
commit a3434cdc6b
2 changed files with 4 additions and 4 deletions

View File

@ -362,7 +362,7 @@ auth_portal_new(struct auth_group *ag, const char *portal)
if (ap == NULL)
log_err(1, "calloc");
ap->ap_auth_group = ag;
ap->ap_initator_portal = checked_strdup(portal);
ap->ap_initiator_portal = checked_strdup(portal);
mask = str = checked_strdup(portal);
net = strsep(&mask, "/");
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);
free(ap->ap_initator_portal);
free(ap->ap_initiator_portal);
free(ap);
}
@ -1683,7 +1683,7 @@ conf_print(struct conf *conf)
auth_name->an_initator_name);
TAILQ_FOREACH(auth_portal, &ag->ag_portals, ap_next)
fprintf(stderr, "\t initiator-portal %s\n",
auth_portal->ap_initator_portal);
auth_portal->ap_initiator_portal);
fprintf(stderr, "}\n");
}
TAILQ_FOREACH(pg, &conf->conf_portal_groups, pg_next) {

View File

@ -69,7 +69,7 @@ struct auth_name {
struct auth_portal {
TAILQ_ENTRY(auth_portal) ap_next;
struct auth_group *ap_auth_group;
char *ap_initator_portal;
char *ap_initiator_portal;
struct sockaddr_storage ap_sa;
int ap_mask;
};