diff options
Diffstat (limited to 'kex.c')
-rw-r--r-- | kex.c | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: kex.c,v 1.100 2015/01/19 19:52:16 markus Exp $ */ | 1 | /* $OpenBSD: kex.c,v 1.101 2015/01/19 20:07:45 markus Exp $ */ |
2 | /* | 2 | /* |
3 | * Copyright (c) 2000, 2001 Markus Friedl. All rights reserved. | 3 | * Copyright (c) 2000, 2001 Markus Friedl. All rights reserved. |
4 | * | 4 | * |
@@ -209,10 +209,11 @@ kex_prop_free(char **proposal) | |||
209 | } | 209 | } |
210 | 210 | ||
211 | /* ARGSUSED */ | 211 | /* ARGSUSED */ |
212 | static void | 212 | static int |
213 | kex_protocol_error(int type, u_int32_t seq, void *ctxt) | 213 | kex_protocol_error(int type, u_int32_t seq, void *ctxt) |
214 | { | 214 | { |
215 | error("Hm, kex protocol error: type %d seq %u", type, seq); | 215 | error("Hm, kex protocol error: type %d seq %u", type, seq); |
216 | return 0; | ||
216 | } | 217 | } |
217 | 218 | ||
218 | static void | 219 | static void |
@@ -281,7 +282,7 @@ kex_send_kexinit(Kex *kex) | |||
281 | } | 282 | } |
282 | 283 | ||
283 | /* ARGSUSED */ | 284 | /* ARGSUSED */ |
284 | void | 285 | int |
285 | kex_input_kexinit(int type, u_int32_t seq, void *ctxt) | 286 | kex_input_kexinit(int type, u_int32_t seq, void *ctxt) |
286 | { | 287 | { |
287 | const char *ptr; | 288 | const char *ptr; |
@@ -316,6 +317,7 @@ kex_input_kexinit(int type, u_int32_t seq, void *ctxt) | |||
316 | packet_check_eom(); | 317 | packet_check_eom(); |
317 | 318 | ||
318 | kex_kexinit_finish(kex); | 319 | kex_kexinit_finish(kex); |
320 | return 0; | ||
319 | } | 321 | } |
320 | 322 | ||
321 | void | 323 | void |