Check GOST parameters are not NULL (CVE-2012-0027)
[oweals/openssl.git] / engines / ccgost / Makefile
index 64be962f39a7042b64a88e452c76ade17b48716e..dadb5230ecd4595923b3c58878d0330e06f23f18 100644 (file)
@@ -48,7 +48,7 @@ install:
                if [ "$(PLATFORM)" != "Cygwin" ]; then \
                        case "$(CFLAGS)" in \
                        *DSO_BEOS*) sfx=".so";; \
-                       *DSO_DLFCN*) sfx=".so";; \
+                       *DSO_DLFCN*) sfx=`expr "$(SHLIB_EXT)" : '.*\(\.[a-z][a-z]*\)' \| ".so"`;; \
                        *DSO_DL*) sfx=".sl";; \
                        *DSO_WIN32*) sfx="eay32.dll"; pfx=;; \
                        *) sfx=".bad";; \