if (arg[1] == '$') {
new_argv[new_argc++] = arg + 1;
} else if (isdigit(arg[1])) {
- unsigned int lbound, ubound, jj;
+ unsigned int lbound = 0;
+ unsigned int ubound = 0;
+ unsigned int jj = 0;
char *end_num;
lbound = strtoul(arg+1, &end_num, 10);
#include "config.h"
#ifdef WITH_LDAP
+#define LDAP_DEPRECATED 1
+
#include <stdio.h>
#include <stdlib.h>
#include <ldap.h>
char *passbuf;
packed = pack(crypted, &len);
- base64_encode_alloc(packed, len, &base64pass);
+ base64_encode_alloc((char *)packed, len, &base64pass);
passbuf = malloc(strlen(base64pass) + 1 + 5);
strcpy(passbuf, "{MD5}");
strcat(passbuf, base64pass);
LDAPMod **mods;
int rc, i;
int num_mods;
- char *passbuf;
+ char *passbuf = NULL;
if(!admin_bind && LDAP_SUCCESS != ( rc = ldap_do_admin_bind())) {
log_module(MAIN_LOG, LOG_ERROR, "failed to bind as admin");