Ack. Thanks, Ramesh.
On 1/27/2014 7:04 PM, [email protected] wrote: > osaf/services/saf/clmsv/nodeagent/main.c | 4 +++- > 1 files changed, 3 insertions(+), 1 deletions(-) > > > During opensaf startup, when clmna talks to CLMS, the MDS send may timeout > in some situations, there is a double free in the case when send timesout. > The patch avoids theis double free. > > diff --git a/osaf/services/saf/clmsv/nodeagent/main.c > b/osaf/services/saf/clmsv/nodeagent/main.c > --- a/osaf/services/saf/clmsv/nodeagent/main.c > +++ b/osaf/services/saf/clmsv/nodeagent/main.c > @@ -504,6 +504,7 @@ void clmna_process_mbx(SYSF_MBX *mbx) > /* NID will anyway stop and retry */ > LOG_ER("Exiting"); > free(msg); > + msg = NULL; > } else > goto done; > } > @@ -513,7 +514,8 @@ void clmna_process_mbx(SYSF_MBX *mbx) > break; > } > done: > -free(msg); > +if (msg) > + free(msg); > TRACE_LEAVE(); > } > ------------------------------------------------------------------------------ WatchGuard Dimension instantly turns raw network data into actionable security intelligence. It gives you real-time visual feedback on key security issues and trends. Skip the complicated setup - simply import a virtual appliance and go from zero to informed in seconds. http://pubads.g.doubleclick.net/gampad/clk?id=123612991&iu=/4140/ostg.clktrk _______________________________________________ Opensaf-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/opensaf-devel
