Skip to content

Commit

Permalink
Avoid SEGV and double free introduced by patch 30ad01b (set host).
Browse files Browse the repository at this point in the history
  • Loading branch information
abh3 committed Nov 6, 2013
1 parent e706181 commit a9fe63c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/XrdSecsss/XrdSecProtocolsss.cc
Original file line number Diff line number Diff line change
Expand Up @@ -211,8 +211,7 @@ void XrdSecProtocolsss::Delete()
// Delete things that get re-allocated every time. The staticID is allocated
// only once so it must stick around for every instance of this object.
//
if (Entity.host) free(Entity.host);
if (urName) free(urName);
if (urName) free(urName); // Same pointer as Entity.host
if (idBuff) free(idBuff);
if (keyTab && keyTab != ktObject) delete keyTab;

Expand Down

0 comments on commit a9fe63c

Please sign in to comment.