Dolda2000 GitWeb
/
doldaconnect.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
44a3601
)
Fixed pointer type mismatch in client krb5 processing.
author
Fredrik Tolf
<fredrik@dolda2000.com>
Mon, 11 Nov 2019 01:13:07 +0000
(
02:13
+0100)
committer
Fredrik Tolf
<fredrik@dolda2000.com>
Mon, 11 Nov 2019 01:13:07 +0000
(
02:13
+0100)
lib/uimisc.c
patch
|
blob
|
blame
|
history
diff --git
a/lib/uimisc.c
b/lib/uimisc.c
index
92d1074
..
2aa6fd3
100644
(file)
--- 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)