File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -3442,8 +3442,9 @@ XrdFstOfsFile::VerifyChecksum()
34423442 " fxid=%08llx errno=%d" , mFileId , errno);
34433443 }
34443444
3445- if (io->attrSet (" user.eos.checksum" , mCheckSum ->GetBinChecksum (checksumlen),
3446- checksumlen)) {
3445+ const char * ptr = mCheckSum ->GetBinChecksum (checksumlen);
3446+
3447+ if (io->attrSet (" user.eos.checksum" , ptr, checksumlen)) {
34473448 eos_err (" msg=\" unable to set extended attr <eos.checksum> \" "
34483449 " fxid=%08llx errno=%d" , mFileId , errno);
34493450 }
Original file line number Diff line number Diff line change @@ -241,8 +241,8 @@ Storage::Verify()
241241
242242 // Update the extended attributes
243243 if (io) {
244- ( void )io-> attrSet ( " user.eos.checksum " , checksummer->GetBinChecksum (checksumlen),
245- checksumlen);
244+ const char * ptr = checksummer->GetBinChecksum (checksumlen);
245+ ( void )io-> attrSet ( " user.eos.checksum " , ptr, checksumlen);
246246 (void )io->attrSet (" user.eos.checksumtype" , checksummer->GetName (),
247247 strlen (checksummer->GetName ()));
248248 (void )io->attrSet (" user.eos.filecxerror" , " 0" , 1 );
You can’t perform that action at this time.
0 commit comments