[patch] the most horrible patch ever

Havoc Pennington hp at redhat.com
Fri Oct 22 10:04:06 PDT 2004


On Fri, 2004-10-22 at 11:03 +0200, Olivier Andrieu wrote:
> How about doing it in _dbus_transport_get_is_authenticated ? Just
> before the ->authenticated is set to TRUE ?

Problem with this patch is that callers of get_is_authenticated() aren't
expecting to handle out-of-memory. You would have to add a way to
distinguish OOM from !authenticated, and make the callers handle it.

Havoc




More information about the dbus mailing list