So, listening to what everyone had to say, perhaps this PR is better then: https://github.com/openssl/openssl/pull/995
In message <a35573177bdb41388fb1d6c2670fe...@usma1ex-dag1mb1.msg.corp.akamai.com> on Mon, 25 Apr 2016 17:45:05 +0000, "Salz, Rich" <rs...@akamai.com> said: rsalz> rsalz> > The 3-slot function is I think cleaner. rsalz> > rsalz> > I'll leave the decision of whether and when to support NULL parameters to rsalz> > the folks working on that code, but it is pretty clear that one must not pass an rsalz> > object one does not "own", such as one returned from a "get0" function, to a rsalz> > function that expects to take ownership of the indicated object. rsalz> rsalz> Agree with both of those. rsalz> rsalz> After a "set0" call, set your pointer to NULL, it's no longer yours :) rsalz> -- rsalz> openssl-dev mailing list rsalz> To unsubscribe: https://mta.openssl.org/mailman/listinfo/openssl-dev rsalz> -- Ticket here: http://rt.openssl.org/Ticket/Display.html?id=4518 Please log in as guest with password guest if prompted -- openssl-dev mailing list To unsubscribe: https://mta.openssl.org/mailman/listinfo/openssl-dev