Skip to content

Commit

Permalink
@- Fixed a possible crash in the LDAP modify code. (Eric Kilfoil)
Browse files Browse the repository at this point in the history
  • Loading branch information
Thies C. Arntzen committed Jun 27, 2000
1 parent 2a7b5f9 commit 9eb2c1e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ext/ldap/ldap.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 9eb2c1e

Please sign in to comment.