PERFORCE change 157371 for review
Robert Watson
rwatson at FreeBSD.org
Sun Feb 8 06:53:31 PST 2009
http://perforce.freebsd.org/chv.cgi?CH=157371
Change 157371 by rwatson at rwatson_cinnamon_macosx on 2009/02/08 14:52:55
Fix mental arithmetic error in IPv6 address encoding for socket_ex
tokens.
Submitted by: sson
Affected files ...
.. //depot/projects/trustedbsd/openbsm/libbsm/bsm_token.c#88 edit
Differences ...
==== //depot/projects/trustedbsd/openbsm/libbsm/bsm_token.c#88 (text+ko) ====
@@ -30,7 +30,7 @@
* IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGE.
*
- * $P4: //depot/projects/trustedbsd/openbsm/libbsm/bsm_token.c#87 $
+ * $P4: //depot/projects/trustedbsd/openbsm/libbsm/bsm_token.c#88 $
*/
#include <sys/types.h>
@@ -962,7 +962,7 @@
5 * sizeof(u_int16_t) + 2 * sizeof(u_int32_t));
else if (so_domain == AF_INET6)
GET_TOKEN_AREA(t, dptr, sizeof(u_char) +
- 5 * sizeof(u_int16_t) + 16 * sizeof(u_int32_t));
+ 5 * sizeof(u_int16_t) + 8 * sizeof(u_int32_t));
else {
errno = EINVAL;
return (NULL);
More information about the p4-projects
mailing list