openbsd-ports/net/silc-server/patches/patch-lib_silcske_silcske_c
sthen 6a5d731296 Roll in some fixes from upstream.. From Brad.
- silcd: check entity validity after command reply
- Packet engine: prevent divide by 0
- SKE: Make sure failure received from remote is error status.
2010-05-17 08:39:24 +00:00

13 lines
519 B
Plaintext

$OpenBSD: patch-lib_silcske_silcske_c,v 1.1 2010/05/17 08:39:24 sthen Exp $
--- lib/silcske/silcske.c.orig Sun May 16 21:02:21 2010
+++ lib/silcske/silcske.c Sun May 16 21:02:54 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);