Date: Sat, 20 Jan 2007 04:48:41 GMT From: "Christian S.J. Peron" <csjp@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 113194 for review Message-ID: <200701200448.l0K4mfAw099467@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=113194 Change 113194 by csjp@csjp_xor on 2007/01/20 04:48:29 Fix handling of IPv6 address for extended subject tokens. Affected files ... .. //depot/projects/trustedbsd/openbsm/libbsm/bsm_token.c#60 edit Differences ... ==== //depot/projects/trustedbsd/openbsm/libbsm/bsm_token.c#60 (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#59 $ + * $P4: //depot/projects/trustedbsd/openbsm/libbsm/bsm_token.c#60 $ */ #include <sys/types.h> @@ -1143,12 +1143,10 @@ ADD_U_INT32(dptr, sid); ADD_U_INT64(dptr, tid->at_port); ADD_U_INT32(dptr, tid->at_type); - ADD_U_INT32(dptr, tid->at_addr[0]); - if (tid->at_type == AU_IPv6) { - ADD_U_INT32(dptr, tid->at_addr[1]); - ADD_U_INT32(dptr, tid->at_addr[2]); - ADD_U_INT32(dptr, tid->at_addr[3]); - } + if (tid->at_type == AU_IPv6) + ADD_MEM(dptr, &tid->at_addr[0], 4 * sizeof(u_int32_t)); + else + ADD_MEM(dptr, &tid->at_addr[0], sizeof(u_int32_t)); return (t); }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200701200448.l0K4mfAw099467>