mirror of
https://git.openafs.org/openafs.git
synced 2025-01-19 15:30:14 +00:00
budb: Store dumper information correctly
Change f498c18a6f
attempted to fix
a problem with using an inappropriate function to copy the
ktc_principal value 'principal' into the d.dumper structure element.
Originally the code read:
principal_hton(&principal, &d.dumper)
which copies the 'host' principal principal into the 'net' structure
d.dumper. However, this was changed to
principal = d.dumper
Which populates 'principal' with whatever garbage is in the d.dumper
structure.
Fix this so that the assignment is done the right way around.
Caught by clang-analyzer
Change-Id: Id9865a36b5a9351d013c695ed301b627ddc4a915
Reviewed-on: http://gerrit.openafs.org/9252
Reviewed-by: Jeffrey Altman <jaltman@your-file-system.com>
Reviewed-by: Derrick Brashear <shadow@your-file-system.com>
Tested-by: BuildBot <buildbot@rampaginggeek.com>
This commit is contained in:
parent
2a2cae72d6
commit
dce2d8206e
@ -1476,7 +1476,7 @@ CreateDump(struct rx_call *call, struct budb_dumpEntry *dump)
|
||||
dump->created = dump->id;
|
||||
d.created = htonl(dump->created);
|
||||
|
||||
principal = d.dumper;
|
||||
d.dumper = principal;
|
||||
tapeSet_hton(&dump->tapes, &d.tapes);
|
||||
|
||||
d.flags = htonl(dump->flags | BUDB_DUMP_INPROGRESS);
|
||||
|
Loading…
Reference in New Issue
Block a user