Skip to content

Commit

Permalink
tac_plus-ng/packet.c: fix non-tls build
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcJHuber committed Dec 9, 2024
1 parent 5af2f4c commit bd4467c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tac_plus-ng/packet.c
Original file line number Diff line number Diff line change
Expand Up @@ -578,16 +578,16 @@ void tac_read(struct context *ctx, int cur)
cleanup(ctx, cur);
return;
}

if (ctx->tls)
ctx->aaa_protocol = S_tacacss;
#else
if (ctx->realm->allowed_protocol_tacacs != TRISTATE_YES) {
cleanup(ctx, cur);
return;
}
#endif

if (ctx->tls)
ctx->aaa_protocol = S_tacacss;

if ((ctx->hdr.tac.version & TAC_PLUS_MAJOR_VER_MASK) != TAC_PLUS_MAJOR_VER) {
report(NULL, LOG_ERR, ~0, "%s: Illegal major version specified: found %d wanted %d", ctx->device_addr_ascii, ctx->hdr.tac.version,
TAC_PLUS_MAJOR_VER);
Expand Down

0 comments on commit bd4467c

Please sign in to comment.