/* $OpenLDAP$ */
/* This work is part of OpenLDAP Software <http://www.openldap.org/>.
*
- * Copyright 1998-2005 The OpenLDAP Foundation.
+ * Copyright 1998-2006 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
iarg = 0; larg = 0; barg = 0;
switch(arg_type & ARGS_NUMERIC) {
case ARG_INT:
- if ( lutil_atoi( &iarg, c->argv[1] ) != 0 ) {
+ if ( lutil_atoix( &iarg, c->argv[1], 0 ) != 0 ) {
snprintf( c->msg, sizeof( c->msg ),
"<%s> unable to parse \"%s\" as int",
c->argv[0], c->argv[1] );
}
break;
case ARG_LONG:
- if ( lutil_atol( &larg, c->argv[1] ) != 0 ) {
+ if ( lutil_atolx( &larg, c->argv[1], 0 ) != 0 ) {
snprintf( c->msg, sizeof( c->msg ),
"<%s> unable to parse \"%s\" as long",
c->argv[0], c->argv[1] );
break;
case ARG_BER_LEN_T: {
unsigned long l;
- if ( lutil_atoul( &l, c->argv[1] ) != 0 ) {
+ if ( lutil_atoulx( &l, c->argv[1], 0 ) != 0 ) {
snprintf( c->msg, sizeof( c->msg ),
"<%s> unable to parse \"%s\" as ber_len_t",
c->argv[0], c->argv[1] );
}
rc = config_check_vals( ct, c, 1 );
ch_free( c->tline );
+ c->tline = NULL;
if ( rc )
rc = LDAP_CONSTRAINT_VIOLATION;
c.argc = argc;
c.argv = argv;
c.valx = -1;
+ c.line = line;
+ c.op = SLAP_CONFIG_ADD;
snprintf( c.log, sizeof( c.log ), "%s: line %d", fname, lineno );
rc = SLAP_CONF_UNKNOWN;