projects
/
mech_eap.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0914089
)
Handle NULL sequence state in exported partial contexts
author
Luke Howard
<lukeh@padl.com>
Sat, 11 Aug 2012 04:30:56 +0000
(14:30 +1000)
committer
Luke Howard
<lukeh@padl.com>
Sat, 11 Aug 2012 04:30:56 +0000
(14:30 +1000)
This could be further improved by not encoding the sequence state
if it is zero.
mech_eap/util_ordering.c
patch
|
blob
|
history
diff --git
a/mech_eap/util_ordering.c
b/mech_eap/util_ordering.c
index
71ebfb5
..
bb7e4d5
100644
(file)
--- a/
mech_eap/util_ordering.c
+++ b/
mech_eap/util_ordering.c
@@
-266,7
+266,10
@@
sequenceExternalize(OM_uint32 *minor,
*minor = GSSEAP_WRONG_SIZE;
return GSS_S_FAILURE;
}
- memcpy(*buf, vqueue, sizeof(queue));
+ if (vqueue != NULL)
+ memcpy(*buf, vqueue, sizeof(queue));
+ else
+ memset(*buf, 0, sizeof(queue));
*buf += sizeof(queue);
*lenremain -= sizeof(queue);