fwknop/extras/openbsd/patches/patch-lib_fko_decode_c
Michael Rash 2b09f048f7 (Vlad Glagolev) Submitted an OpenBSD port for fwknop-2.0.3
(Vlad Glagolev) Submitted an OpenBSD port for fwknop-2.0.3, and this has
been checked in under extras/openbsd/.
2012-09-13 21:24:54 -04:00

15 lines
578 B
Plaintext

--- lib/fko_decode.c.orig Wed Sep 5 06:04:48 2012
+++ lib/fko_decode.c Sat Sep 8 15:11:00 2012
@@ -285,9 +285,9 @@ fko_decode_spa_data(fko_ctx_t ctx)
b64_decode(tbuf, (unsigned char*)ctx->message);
- /* Require a message similar to: 1.2.3.4,tcp/22
+ /* Require a message similar to: 1.2.3.4,tcp/22 (if it's not command message)
*/
- if(validate_access_msg(ctx->message) != FKO_SUCCESS)
+ if(ctx->message_type != FKO_COMMAND_MSG && validate_access_msg(ctx->message) != FKO_SUCCESS)
{
free(tbuf);
return(FKO_ERROR_INVALID_DATA);