git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1a96aee
)
Merge tridge's blank password fix from HEAD.
author
Jeremy Allison
<jra@samba.org>
Thu, 24 Oct 2002 01:05:30 +0000
(
01:05
+0000)
committer
Jeremy Allison
<jra@samba.org>
Thu, 24 Oct 2002 01:05:30 +0000
(
01:05
+0000)
Jeremy.
(This used to be commit
eadfd312ba92a780f655cf117c44b30457f007e8
)
source3/libads/kerberos.c
patch
|
blob
|
history
diff --git
a/source3/libads/kerberos.c
b/source3/libads/kerberos.c
index b586d842262bb78fcfdfb0ac23eab19231f5d22a..bef2febaefd10d3bc2998332195ea0fe387e70ae 100644
(file)
--- a/
source3/libads/kerberos.c
+++ b/
source3/libads/kerberos.c
@@
-40,8
+40,12
@@
kerb_prompter(krb5_context ctx, void *data,
memset(prompts[0].reply->data, 0, prompts[0].reply->length);
if (prompts[0].reply->length > 0) {
- strncpy(prompts[0].reply->data, data, prompts[0].reply->length-1);
- prompts[0].reply->length = strlen(prompts[0].reply->data);
+ if (data) {
+ strncpy(prompts[0].reply->data, data, prompts[0].reply->length-1);
+ prompts[0].reply->length = strlen(prompts[0].reply->data);
+ } else {
+ prompts[0].reply->length = 0;
+ }
}
return 0;
}