Bug 1806 - CcnClientHelper m_files is never cleared
CcnClientHelper m_files is never cleared
Status: CLOSED FIXED
Product: dce
Classification: Unclassified
Component: other
unspecified
PC Linux
: P5 minor
Assigned To: Emilio Mancini
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-12-02 11:04 EST by Emilio Mancini
Modified: 2014-04-15 09:46 EDT (History)
2 users (show)

See Also:


Attachments
Proposed patch (1.07 KB, patch)
2013-12-02 11:04 EST, Emilio Mancini
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Emilio Mancini 2013-12-02 11:04:51 EST
Created attachment 1728 [details]
Proposed patch

When reusing an instance of CcnClientHelper, it copies files also in nodes (files-n directories) where it should not. 

The problem could be that in ccn-client-helper.cc, the m_files field is updated when AddFile is called, but never cleared. The proposed fix is to clear it in the ResetEnvironment function, as in the attached patch file.
Comment 1 Emilio Mancini 2013-12-06 04:51:43 EST
Patch applied with changeset 530: 2faab8722e1b