From a2479e18f08d9b2fe8d9991063c7591c53924c83 Mon Sep 17 00:00:00 2001 From: Alexey Khromov Date: Thu, 24 Apr 2025 00:09:49 +0300 Subject: [PATCH] Revert hydra HXP_DATA transition --- source/bforce/prot_hydra.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/source/bforce/prot_hydra.c b/source/bforce/prot_hydra.c index 8952e77..0b19261 100644 --- a/source/bforce/prot_hydra.c +++ b/source/bforce/prot_hydra.c @@ -481,7 +481,7 @@ static char *hydra_putuueblock(char *buf, char *src, size_t szsrc) *buf++ = HYDRA_UUENC(src[0] >> 2); *buf++ = HYDRA_UUENC(((src[0] << 4) & 0x30) | ((src[1] >> 4) & 0x0f)); *buf++ = HYDRA_UUENC(((src[1] << 2) & 0x3c) | ((src[2] >> 6) & 0x03)); - *buf++ = (HYDRA_UUENC(src[2]) & 0x3f); //-V0578 + *buf++ = HYDRA_UUENC(src[2] & 0x3f); //-V0578 } if( szsrc > 0 ) @@ -1725,8 +1725,7 @@ int hydra_batch(s_hydrainfo *hi, s_protinfo *pi) { log("Hydra: got invalid FINFOACK packet (ignored)"); } - offs = hydra_getlong(hi->ibuf); - if( offs == 0 ) + else if( (offs = hydra_getlong(hi->ibuf)) == 0 ) //-V0560 do not touch { txlastack = 0; txtries = 0;