summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Sulfrian <alex@spline.inf.fu-berlin.de>2016-01-16 01:05:55 +0100
committerAlexander Sulfrian <alex@spline.inf.fu-berlin.de>2016-01-16 01:05:55 +0100
commit0efbbf03ab6b2d8ca2ce51c29c25833c57494c62 (patch)
treea3f2995fea107c14f8d4a8ab1a5a37377f9e5369
parentfea79207f34702b4e784af343eba90cac72055b8 (diff)
downloadldap-plugin-0efbbf03ab6b2d8ca2ce51c29c25833c57494c62.tar.gz
ldap-plugin-0efbbf03ab6b2d8ca2ce51c29c25833c57494c62.tar.bz2
ldap-plugin-0efbbf03ab6b2d8ca2ce51c29c25833c57494c62.zip
Initialize variables
-rw-r--r--service_passwords.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/service_passwords.c b/service_passwords.c
index 1a60fc5..a1d8f6d 100644
--- a/service_passwords.c
+++ b/service_passwords.c
@@ -261,7 +261,7 @@ fail1:
*/
static int auth_with_password_fallback(char *dn, struct berval *credentials)
{
- char *parent_dn;
+ char *parent_dn = NULL;
int rc = 0;
char fn[] = "auth_with_password_fallback in service_passwords plug-in";
@@ -314,13 +314,13 @@ static int auth_with_password_fallback(char *dn, struct berval *credentials)
*/
static int pre_bind(Slapi_PBlock *pb)
{
- char *dn;
- int method;
- struct berval *credentials;
- int is_replication;
- int is_internal;
+ char *dn = NULL;
+ int method = 0;
+ struct berval *credentials = NULL;
+ int is_replication = 0;
+ int is_internal = 0;
- char *parent_dn;
+ char *parent_dn = NULL;
int rc = 0;
char fn[] = "pre_bind in service_passwords plug-in";