Blame SOURCES/openssl-0.9.8b-aliasing-bug.patch

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