Allow for dso load by explicit path on HP-UX.
authorAndy Polyakov <appro@openssl.org>
Thu, 9 Jun 2005 20:52:24 +0000 (20:52 +0000)
committerAndy Polyakov <appro@openssl.org>
Thu, 9 Jun 2005 20:52:24 +0000 (20:52 +0000)
crypto/dso/dso_dl.c

index 2de01b09e1cd93710a1e92ac4ad6c13c9d783866..4d599246c81c6c733c8be8b49359534b71b20846 100644 (file)
@@ -130,7 +130,8 @@ static int dl_load(DSO *dso)
                DSOerr(DSO_F_DL_LOAD,DSO_R_NO_FILENAME);
                goto err;
                }
-       ptr = shl_load(filename, BIND_IMMEDIATE|DYNAMIC_PATH, 0L);
+       ptr = shl_load(filename, BIND_IMMEDIATE |
+               (dso->flags&DSO_FLAG_NO_NAME_TRANSLATION?0:DYNAMIC_PATH), 0L);
        if(ptr == NULL)
                {
                DSOerr(DSO_F_DL_LOAD,DSO_R_LOAD_FAILED);