openbsd-ports/devel/silc-toolkit/patches/patch-lib_silcske_silcske_c
sthen 1a19f9bc82 Roll in some fixes from upstream. From Brad.
- Packet engine: prevent divide by 0.
- SKE: Make sure failure received from remote is error status.
2010-05-17 08:36:53 +00:00

13 lines
519 B
Plaintext

$OpenBSD: patch-lib_silcske_silcske_c,v 1.1 2010/05/17 08:36:53 sthen Exp $
--- lib/silcske/silcske.c.orig Sun May 16 20:13:58 2010
+++ lib/silcske/silcske.c Sun May 16 20:14:36 2010
@@ -2387,6 +2387,8 @@ SILC_FSM_STATE(silc_ske_st_responder_failure)
ske->packet = NULL;
}
ske->status = error;
+ if (ske->status == SILC_SKE_STATUS_OK)
+ ske->status = SILC_SKE_STATUS_ERROR;
silc_packet_stream_unlink(ske->stream, &silc_ske_stream_cbs, ske);
silc_schedule_task_del_by_context(ske->schedule, ske);