Skip to content
Snippets Groups Projects
Commit 99a31649 authored by Pierangelo Masarati's avatar Pierangelo Masarati
Browse files

fix uninitialized buffer (ITS#2849)

parent 43f7494a
Branches
Tags
No related merge requests found
......@@ -850,11 +850,11 @@ meta_create_entry (
Attribute *attr, *soc_attr, **attrp;
struct berval dummy = { 0, NULL };
struct berval *bv, bdn;
const char *text;
const char *text = NULL;
char* ename = NULL;
struct berval sc = { 0, NULL };
char* textbuf;
size_t textlen;
char textbuf[SLAP_TEXT_BUFLEN];
size_t textlen = sizeof(textbuf);
if ( ber_scanf( &ber, "{m{", &bdn ) == LBER_ERROR ) {
result->type = CREATE_ENTRY_ERR;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment