Date: Fri, 19 Jun 2015 20:58:43 GMT From: roam@FreeBSD.org To: svn-soc-all@FreeBSD.org Subject: socsvn commit: r287337 - soc2015/roam/ng_ayiya Message-ID: <201506192058.t5JKwhGe051709@socsvn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: roam Date: Fri Jun 19 20:58:43 2015 New Revision: 287337 URL: http://svnweb.FreeBSD.org/socsvn/?view=rev&rev=287337 Log: Fix the AYIYA ID length calculation properly. ObQuote: "A momentary lapse of reason" Modified: soc2015/roam/ng_ayiya/ng_ayiya.c Modified: soc2015/roam/ng_ayiya/ng_ayiya.c ============================================================================== --- soc2015/roam/ng_ayiya/ng_ayiya.c Fri Jun 19 19:57:39 2015 (r287336) +++ soc2015/roam/ng_ayiya/ng_ayiya.c Fri Jun 19 20:58:43 2015 (r287337) @@ -515,7 +515,7 @@ return (EINVAL); if (hdr->idlen > 4) return (EINVAL); - const int32_t ofs_sig = ofs_id + (2 << (hdr->idlen - 1)); + const int32_t ofs_sig = ofs_id + (1 << hdr->idlen); if (len < ofs_sig) return (EINVAL); const unsigned siglen = 4 * hdr->siglen;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201506192058.t5JKwhGe051709>