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