GSocketControlMessage: clean up confusing code
authorRyan Lortie <desrt@desrt.ca>
Wed, 22 Sep 2010 10:45:02 +0000 (06:45 -0400)
committerRyan Lortie <desrt@desrt.ca>
Wed, 22 Sep 2010 10:47:34 +0000 (06:47 -0400)
commit61453216803d745b1d563710f8ec3aa918d2e819
tree4266f83fd658727fde1ecc8c91445b0a48217561
parent02451227ec8bafae48af4c519c9e0441176d1978
GSocketControlMessage: clean up confusing code

It looks like the deserialisation function in GSocketControlMessage can
potentially leak a reference to the class structure of a
GSocketControlMessage subclass (although the particular code path is
probably never hit).

Clean up the code a bit.

Also, make sure that the GUnixCredentialsMessage type is registered
before attempting deserialisation.

Closes bug #629687.
gio/gsocketcontrolmessage.c