diff options
author | Thies C. Arntzen <thies@php.net> | 2000-06-27 09:28:05 +0000 |
---|---|---|
committer | Thies C. Arntzen <thies@php.net> | 2000-06-27 09:28:05 +0000 |
commit | 9eb2c1efb14b6d773e8697dff934705a947dff87 (patch) | |
tree | 8d8aff5e559fe0b579f6668f49cb5e39b778cf56 | |
parent | 2a7b5f91908de044d5082360f60f1ab3dad657b6 (diff) | |
download | php-git-9eb2c1efb14b6d773e8697dff934705a947dff87.tar.gz |
@- Fixed a possible crash in the LDAP modify code. (Eric Kilfoil)
-rw-r--r-- | ext/ldap/ldap.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/ldap/ldap.c b/ext/ldap/ldap.c index dfd29fefd6..50adb79053 100644 --- a/ext/ldap/ldap.c +++ b/ext/ldap/ldap.c @@ -1157,7 +1157,7 @@ static void php_ldap_do_modify(INTERNAL_FUNCTION_PARAMETERS, int oper) zend_hash_index_find((*value)->value.ht,j, (void **) &ivalue); convert_to_string_ex(ivalue); ldap_mods[i]->mod_values[j] = (*ivalue)->value.str.val; - ldap_mods[i]->mod_values[j][(*value)->value.str.len] = '\0'; + ldap_mods[i]->mod_values[j][(*ivalue)->value.str.len] = '\0'; } } ldap_mods[i]->mod_values[num_values] = NULL; |