[prev in list] [next in list] [prev in thread] [next in thread] 

List:       freedesktop-dbus
Subject:    Re: [patch] the most horrible patch ever
From:       Havoc Pennington <hp () redhat ! com>
Date:       2004-10-22 17:04:06
Message-ID: 1098464646.10841.7.camel () localhost ! localdomain
[Download RAW message or body]

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



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic