From f498c18a6f7300eb89ca3b9d9b85c4d461fa8474 Mon Sep 17 00:00:00 2001 From: Jeffrey Altman Date: Wed, 15 Jul 2009 01:46:45 -0400 Subject: [PATCH] Do not call principal_hton() to copy ktc_principal structs Reported by Marcus Watts. principal_hton() is used to copy butc_principal structs. Passing in a ktc_principal as source and destination will result in beyond the end of the ktc_principal. LICENSE IPL10 Reviewed-on: http://gerrit.openafs.org/86 Verified-by: Russ Allbery Reviewed-by: Russ Allbery --- src/budb/procs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/budb/procs.c b/src/budb/procs.c index 7f5f35043..f8d37cc2c 100644 --- a/src/budb/procs.c +++ b/src/budb/procs.c @@ -1484,7 +1484,7 @@ CreateDump(struct rx_call *call, struct budb_dumpEntry *dump) dump->created = dump->id; d.created = htonl(dump->created); - principal_hton(&principal, &d.dumper); + principal = d.dumper; tapeSet_hton(&dump->tapes, &d.tapes); d.flags = htonl(dump->flags | BUDB_DUMP_INPROGRESS); -- 2.39.5