Skip to contentSkip to conversation

Add authgss_free_private_data interface.

PATCH Steve Dickson 1 participant 1 message Feb 13, 2013 1 message not in the archive

Subsystems (2)
lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw
Quoted 7 lines · NeilBrown

This is a necessary partner to authgss_get_private_data, so that the caller can free the data when needed (and not before).

The previous practice of leaving the private data where it was resulted in authgss_destroy_context() attempting to destroy the context on the server which was incorrect, and fortunately fails for other reasons.

Quoted 8 lines

An application which uses authgss_get_private_data() but does not call authgss_free_private_data() will be as correct as, or slightly more correct than, it was, but will suffer a slight memory leak.

This patch is based on commit 07fce317cac267509b944a8191cafa8e49b5e328 from librpcsecgss that was committed by Kevin Coffman.

Committed...

steved.