https://issues.apache.org/bugzilla/show_bug.cgi?id=52210

--- Comment #6 from [email protected] 2012-04-10 15:28:27 UTC ---
Thanks for taking a look.  I confess that I am not terribly familiar with the
strict-aliasing rules, so I am not sure how best to avoid the problem here. 
The issue is that SSL_get0_next_proto_negotiated requires an unsigned char**,
but apr_pstrmemdup and ssl_run_npn_proto_negotiated_hook each require a (plain,
not unsigned) char*.  If I have no casts at all, the compiler complains.  Is
the aliasing issue avoided if I cast to char* when I call apr_pstrmemdup and
ssl_run_npn_proto_negotiated_hook, rather than casting to unsigned char** when
I call SSL_get0_next_proto_negotiated, as I do now?  If so, I'll fix that right
away; if not, what should I do instead?

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to