From e385389c27864344dd096e0d236014f1a616b05b Mon Sep 17 00:00:00 2001 From: Fredrik Tolf Date: Mon, 11 Nov 2019 02:13:07 +0100 Subject: [PATCH] Fixed pointer type mismatch in client krb5 processing. --- lib/uimisc.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/uimisc.c b/lib/uimisc.c index 92d1074..2aa6fd3 100644 --- a/lib/uimisc.c +++ b/lib/uimisc.c @@ -237,6 +237,7 @@ static void process_krb5(struct dc_response *resp, struct logindata *data) krb5_data k5d; krb5_ap_rep_enc_part *repl; char *buf; + size_t kdl; krb = data->mechdata; switch(resp->code) @@ -257,7 +258,8 @@ static void process_krb5(struct dc_response *resp, struct logindata *data) case 1: if((ires = dc_interpret(resp)) != NULL) { - k5d.data = hexdecode(icswcstombs(ires->argv[0].val.str, NULL, NULL), &k5d.length); + k5d.data = hexdecode(icswcstombs(ires->argv[0].val.str, NULL, NULL), &kdl); + k5d.length = kdl; if(!krb->valid) { if((ret = krb5_rd_rep(krb->context, krb->authcon, &k5d, &repl)) != 0) -- 2.11.0