Bug 1806

Summary: CcnClientHelper m_files is never cleared
Product: dce Reporter: Emilio Mancini <emilio.mancini>
Component: otherAssignee: Emilio Mancini <emilio.mancini>
Status: CLOSED FIXED    
Severity: minor CC: ns-bugs, tazaki
Priority: P5    
Version: unspecified   
Hardware: PC   
OS: Linux   
Attachments: Proposed patch

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