Skip to content

Commit 75e829b

Browse files
rbgargamillert
authored andcommitted
Add missing sudoers_context to verify_krb_v5_tgt()
Commit 2440174 added ctx variable to log_warningx() call but that variable was not declared in that context, breaking the build.
1 parent 5f3a6b4 commit 75e829b

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

plugins/sudoers/auth/kerb5.c

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,8 @@
5252
#endif
5353

5454
#ifndef HAVE_KRB5_VERIFY_USER
55-
static int verify_krb_v5_tgt(krb5_context, krb5_creds *, char *);
55+
static int verify_krb_v5_tgt(const struct sudoers_context *, krb5_context,
56+
krb5_creds *, char *);
5657
#endif
5758
static struct _sudo_krb5_data {
5859
krb5_context sudo_context;
@@ -246,7 +247,7 @@ sudo_krb5_verify(const struct sudoers_context *ctx, struct passwd *pw,
246247
creds = &credbuf;
247248

248249
/* Verify the TGT to prevent spoof attacks. */
249-
if ((error = verify_krb_v5_tgt(sudo_context, creds, auth->name)))
250+
if ((error = verify_krb_v5_tgt(ctx, sudo_context, creds, auth->name)))
250251
goto done;
251252

252253
/* Store credential in cache. */
@@ -306,7 +307,8 @@ sudo_krb5_cleanup(const struct sudoers_context *ctx, struct passwd *pw,
306307
* Returns 0 for successful authentication, non-zero for failure.
307308
*/
308309
static int
309-
verify_krb_v5_tgt(krb5_context sudo_context, krb5_creds *cred, char *auth_name)
310+
verify_krb_v5_tgt(const struct sudoers_context *ctx, krb5_context sudo_context,
311+
krb5_creds *cred, char *auth_name)
310312
{
311313
krb5_error_code error;
312314
krb5_principal server;

0 commit comments

Comments
 (0)