]> granicus.if.org Git - php/commitdiff
prevent deadlocks when re-using previously established persistent connection
authorAntony Dovgal <tony2001@php.net>
Sun, 10 Oct 2004 10:54:26 +0000 (10:54 +0000)
committerAntony Dovgal <tony2001@php.net>
Sun, 10 Oct 2004 10:54:26 +0000 (10:54 +0000)
ext/oci8/oci8.c

index 3c6e4d3c547a4294ac88d0c958948f82f79d0c19..183448c1f9553088c42947a633fc507a696f4654 100644 (file)
@@ -2700,6 +2700,7 @@ static oci_session *_oci_open_session(oci_server* server,char *username,char *pa
                                        session->persistent = 1;
                                }
                                smart_str_free_ex(&hashed_details, 1);
+                               mutex_unlock(mx_lock);
                                return session;
                        } else {
                                _oci_close_session(session);