On 05/21/2013 03:42 PM, William Roberts wrote:
Setting the initial pointer to NULL doesn't do anything as it gets set by
the subsequent function.

Only in the non-error case. Otherwise it doesn't get set. Interestingly, we were initializing it to NULL in the original code but that got stripped by a subsequent change by Google.


Logging the error seem ok.

What exception is the app aborting with?


On Tue, May 21, 2013 at 12:20 PM, Richard Haines <
[email protected]> wrote:

I've been attempting to test some networking and had problems with
SELinux.getPeerContext when no context set using java.net.Socket - the app
aborts. This patch fixes the two problems in getPeerCon. I've also patched
the other get... methods/functions to set the initial pointer to null and
give the error.

Does this seem reasonable.

Richard






--
This message was distributed to subscribers of the seandroid-list mailing list.
If you no longer wish to subscribe, send mail to [email protected] with
the words "unsubscribe seandroid-list" without quotes as the message.

Reply via email to