a99897
a99897
This patch fixes a violation of the C aliasing rules that can cause
a99897
miscompilation with some compiler versions.
a99897
a99897
--- openssl-0.9.8b/crypto/dso/dso_dlfcn.c.orig	2006-10-30 18:21:35.000000000 +0100
a99897
+++ openssl-0.9.8b/crypto/dso/dso_dlfcn.c	2006-10-30 18:21:37.000000000 +0100
a99897
@@ -237,7 +237,7 @@ static void *dlfcn_bind_var(DSO *dso, co
a99897
 static DSO_FUNC_TYPE dlfcn_bind_func(DSO *dso, const char *symname)
a99897
 	{
a99897
 	void *ptr;
a99897
-	DSO_FUNC_TYPE sym, *tsym = &sym;
a99897
+	DSO_FUNC_TYPE sym;
a99897
 
a99897
 	if((dso == NULL) || (symname == NULL))
a99897
 		{
a99897
@@ -255,7 +255,7 @@ static DSO_FUNC_TYPE dlfcn_bind_func(DSO
a99897
 		DSOerr(DSO_F_DLFCN_BIND_FUNC,DSO_R_NULL_HANDLE);
a99897
 		return(NULL);
a99897
 		}
a99897
-	*(void **)(tsym) = dlsym(ptr, symname);
a99897
+	sym = dlsym(ptr, symname);
a99897
 	if(sym == NULL)
a99897
 		{
a99897
 		DSOerr(DSO_F_DLFCN_BIND_FUNC,DSO_R_SYM_FAILURE);