8ff9d48002
- Packet engine: prevent divide by 0 - SKE: Make sure failure received from remote results in error status From upstream repo via Brad
13 lines
519 B
Plaintext
13 lines
519 B
Plaintext
$OpenBSD: patch-lib_silcske_silcske_c,v 1.1 2010/06/02 00:10:18 sthen Exp $
|
|
--- lib/silcske/silcske.c.orig Sat May 29 19:00:50 2010
|
|
+++ lib/silcske/silcske.c Sat May 29 19:01:32 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);
|