Date: Sun, 18 Nov 2018 22:17:25 +0000 (UTC) From: Mikhail Teterin <mi@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r485285 - head/security/sst/files Message-ID: <201811182217.wAIMHPxl067790@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: mi Date: Sun Nov 18 22:17:24 2018 New Revision: 485285 URL: https://svnweb.freebsd.org/changeset/ports/485285 Log: Fix an off-by-one error in the SSL-method selection I implemented earlier. How embarrassing... Modified: head/security/sst/files/patch-sst.c Modified: head/security/sst/files/patch-sst.c ============================================================================== --- head/security/sst/files/patch-sst.c Sun Nov 18 22:11:32 2018 (r485284) +++ head/security/sst/files/patch-sst.c Sun Nov 18 22:17:24 2018 (r485285) @@ -233,7 +233,7 @@ + + SHOW_info1("method `%s' not known, trying best available", requested); +highest: -+ m = methods + sizeof(methods)/sizeof(methods[0]); /* Last entry */ ++ m = methods + sizeof(methods)/sizeof(methods[0]) - 1; /* Last entry */ + return m->meth(); +}
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201811182217.wAIMHPxl067790>