]> granicus.if.org Git - php/commitdiff
MFH: Prevent bindport from being used uninitialized
authorSara Golemon <pollita@php.net>
Thu, 2 Feb 2006 18:16:43 +0000 (18:16 +0000)
committerSara Golemon <pollita@php.net>
Thu, 2 Feb 2006 18:16:43 +0000 (18:16 +0000)
main/streams/xp_socket.c

index 3b1263d519193a7b13834b13821053d6df96b7f2..fe6fa16b9fbc255a3b0c7e449c22bf99f10ca8f7 100644 (file)
@@ -578,7 +578,7 @@ static inline int php_tcp_sockop_connect(php_stream *stream, php_netstream_data_
                php_stream_xport_param *xparam TSRMLS_DC)
 {
        char *host = NULL, *bindto = NULL;
-       int portno, bindport;
+       int portno, bindport = 0;
        int err;
        int ret;
        zval **tmpzval = NULL;