diff --git a/src/ptserver/ptprocs.c b/src/ptserver/ptprocs.c index 749515b7bd..2528ca5d94 100644 --- a/src/ptserver/ptprocs.c +++ b/src/ptserver/ptprocs.c @@ -1176,7 +1176,7 @@ SPR_GetCPS2(struct rx_call *call, afs_int32 aid, afs_int32 ahost, afs_int32 cid = ANONYMOUSID; code = getCPS2(call, aid, ahost, alist, over, &cid); - osi_auditU(call, PTS_GetCPS2Event, code, AUD_ID, aid, AUD_HOST, ahost, + osi_auditU(call, PTS_GetCPS2Event, code, AUD_ID, aid, AUD_HOST, htonl(ahost), AUD_END); ViceLog(125, ("PTS_GetCPS2: code %d cid %d aid %d ahost %d\n", code, cid, aid, ahost)); return code; @@ -1259,7 +1259,7 @@ SPR_GetHostCPS(struct rx_call *call, afs_int32 ahost, prlist *alist, afs_int32 code; code = getHostCPS(call, ahost, alist, over); - osi_auditU(call, PTS_GetHCPSEvent, code, AUD_HOST, ahost, AUD_END); + osi_auditU(call, PTS_GetHCPSEvent, code, AUD_HOST, htonl(ahost), AUD_END); ViceLog(125, ("PTS_GetHostCPS: code %d ahost %d\n", code, ahost)); return code; } diff --git a/src/volser/volprocs.c b/src/volser/volprocs.c index 0d5271f9e6..8fdd5860f6 100644 --- a/src/volser/volprocs.c +++ b/src/volser/volprocs.c @@ -1238,7 +1238,7 @@ SAFSVolForward(struct rx_call *acid, afs_int32 fromTrans, afs_int32 fromDate, code = VolForward(acid, fromTrans, fromDate, destination, destTrans, cookie); osi_auditU(acid, VS_ForwardEvent, code, AUD_LONG, fromTrans, AUD_HOST, - destination->destHost, AUD_LONG, destTrans, AUD_END); + htonl(destination->destHost), AUD_LONG, destTrans, AUD_END); return code; } @@ -1441,7 +1441,7 @@ SAFSVolForwardMultiple(struct rx_call *acid, afs_int32 fromTrans, afs_int32 } osi_auditU(acid, VS_ForwardEvent, (code ? code : codes[i]), AUD_LONG, - fromTrans, AUD_HOST, dest->server.destHost, AUD_LONG, + fromTrans, AUD_HOST, htonl(dest->server.destHost), AUD_LONG, dest->trans, AUD_END); } free(tcons); @@ -1591,7 +1591,7 @@ SAFSVolSetForwarding(struct rx_call *acid, afs_int32 atid, afs_int32 anewsite) code = VolSetForwarding(acid, atid, anewsite); osi_auditU(acid, VS_SetForwEvent, code, AUD_LONG, atid, AUD_HOST, - anewsite, AUD_END); + htonl(anewsite), AUD_END); return code; }