projects
/
silc.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fixed connection authentication protocol aborting.
[silc.git]
/
lib
/
silcske
/
silcske.c
diff --git
a/lib/silcske/silcske.c
b/lib/silcske/silcske.c
index a726174339bde711d2108432905668a7fbc5fb37..cf97428eeed0d291334d2db4c2c778d619035939 100644
(file)
--- a/
lib/silcske/silcske.c
+++ b/
lib/silcske/silcske.c
@@
-1035,6
+1035,7
@@
SilcSKE silc_ske_alloc(SilcRng rng, SilcSchedule schedule,
ske->public_key = public_key;
ske->private_key = private_key;
ske->retry_timer = SILC_SKE_RETRY_MIN;
ske->public_key = public_key;
ske->private_key = private_key;
ske->retry_timer = SILC_SKE_RETRY_MIN;
+ ske->refcnt = 1;
return ske;
}
return ske;
}
@@
-1064,6
+1065,10
@@
void silc_ske_free(SilcSKE ske)
return;
}
return;
}
+ ske->refcnt--;
+ if (ske->refcnt > 0)
+ return;
+
/* Free start payload */
if (ske->start_payload)
silc_ske_payload_start_free(ske->start_payload);
/* Free start payload */
if (ske->start_payload)
silc_ske_payload_start_free(ske->start_payload);