]> granicus.if.org Git - php/commitdiff
@- Fixed a possible crash in the LDAP modify code. (Eric Kilfoil)
authorThies C. Arntzen <thies@php.net>
Tue, 27 Jun 2000 09:28:05 +0000 (09:28 +0000)
committerThies C. Arntzen <thies@php.net>
Tue, 27 Jun 2000 09:28:05 +0000 (09:28 +0000)
ext/ldap/ldap.c

index dfd29fefd6e56c933f0a2835c6ec611552144da8..50adb79053a734f10a54b0cbe78da64d3c864f6a 100644 (file)
@@ -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;