FAQ
sniper Fri Apr 15 18:08:45 2005 EDT

Modified files: (Branch: PHP_4_3)
/php-src/ext/snmp snmp.c
Log:
MFH: - Use correct type (bug #32720)

http://cvs.php.net/diff.php/php-src/ext/snmp/snmp.c?r1=1.70.2.18&r2=1.70.2.19&ty=u
Index: php-src/ext/snmp/snmp.c
diff -u php-src/ext/snmp/snmp.c:1.70.2.18 php-src/ext/snmp/snmp.c:1.70.2.19
--- php-src/ext/snmp/snmp.c:1.70.2.18 Wed Mar 16 11:19:59 2005
+++ php-src/ext/snmp/snmp.c Fri Apr 15 18:08:43 2005
@@ -20,7 +20,7 @@
+----------------------------------------------------------------------+
*/

-/* $Id: snmp.c,v 1.70.2.18 2005/03/16 16:19:59 harrie Exp $ */
+/* $Id: snmp.c,v 1.70.2.19 2005/04/15 22:08:43 sniper Exp $ */

#ifdef HAVE_CONFIG_H
#include "config.h"
@@ -347,9 +347,9 @@
struct snmp_pdu *pdu=NULL, *response;
struct variable_list *vars;
oid name[MAX_NAME_LEN];
- int name_length;
+ size_t name_length;
oid root[MAX_NAME_LEN];
- int rootlen = 0;
+ size_t rootlen = 0;
int gotroot = 0;
int status, count;
char buf[2048];

Search Discussions

  • Jani Taskinen at Apr 23, 2005 at 9:15 pm
    sniper Sat Apr 23 17:15:39 2005 EDT

    Modified files: (Branch: PHP_4_3)
    /php-src/ext/snmp snmp.c
    Log:
    MFH: fix memleak

    http://cvs.php.net/diff.php/php-src/ext/snmp/snmp.c?r1=1.70.2.19&r2=1.70.2.20&ty=u
    Index: php-src/ext/snmp/snmp.c
    diff -u php-src/ext/snmp/snmp.c:1.70.2.19 php-src/ext/snmp/snmp.c:1.70.2.20
    --- php-src/ext/snmp/snmp.c:1.70.2.19 Fri Apr 15 18:08:43 2005
    +++ php-src/ext/snmp/snmp.c Sat Apr 23 17:15:39 2005
    @@ -20,7 +20,7 @@
    +----------------------------------------------------------------------+
    */

    -/* $Id: snmp.c,v 1.70.2.19 2005/04/15 22:08:43 sniper Exp $ */
    +/* $Id: snmp.c,v 1.70.2.20 2005/04/23 21:15:39 sniper Exp $ */

    #ifdef HAVE_CONFIG_H
    #include "config.h"
    @@ -442,6 +442,8 @@
    if (st == 1) {
    *return_value = *snmpval;
    zval_copy_ctor(return_value);
    + zval_dtor(snmpval);
    + efree(snmpval);
    snmp_close(ss);
    return;
    } else if (st == 2) {
  • Jani Taskinen at Apr 27, 2005 at 11:27 pm
    sniper Wed Apr 27 19:27:53 2005 EDT

    Modified files: (Branch: PHP_4_3)
    /php-src/ext/snmp snmp.c
    Log:
    MFH

    http://cvs.php.net/diff.php/php-src/ext/snmp/snmp.c?r1=1.70.2.20&r2=1.70.2.21&ty=u
    Index: php-src/ext/snmp/snmp.c
    diff -u php-src/ext/snmp/snmp.c:1.70.2.20 php-src/ext/snmp/snmp.c:1.70.2.21
    --- php-src/ext/snmp/snmp.c:1.70.2.20 Sat Apr 23 17:15:39 2005
    +++ php-src/ext/snmp/snmp.c Wed Apr 27 19:27:53 2005
    @@ -20,7 +20,7 @@
    +----------------------------------------------------------------------+
    */

    -/* $Id: snmp.c,v 1.70.2.20 2005/04/23 21:15:39 sniper Exp $ */
    +/* $Id: snmp.c,v 1.70.2.21 2005/04/27 23:27:53 sniper Exp $ */

    #ifdef HAVE_CONFIG_H
    #include "config.h"
    @@ -442,8 +442,7 @@
    if (st == 1) {
    *return_value = *snmpval;
    zval_copy_ctor(return_value);
    - zval_dtor(snmpval);
    - efree(snmpval);
    + zval_ptr_dtor(&snmpval);
    snmp_close(ss);
    return;
    } else if (st == 2) {

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupphp-cvs @
categoriesphp
postedApr 15, '05 at 10:08p
activeApr 27, '05 at 11:27p
posts3
users1
websitephp.net

1 user in discussion

Jani Taskinen: 3 posts

People

Translate

site design / logo © 2019 Grokbase