exit( EXIT_FAILURE );
}
ldapuri = ber_strdup( optarg );
+ if ( ldapuri == NULL ) {
+ exit( EXIT_FAILURE );
+ }
break;
case 'I':
#ifdef HAVE_CYRUS_SASL
break;
case 'w': /* password */
passwd.bv_val = ber_strdup( optarg );
+ if ( passwd.bv_val == NULL ) {
+ exit( EXIT_FAILURE );
+ }
{
char* p;
tool_exit( ld, EXIT_FAILURE );
}
passwd.bv_val = ber_strdup( pw );
+ if ( passwd.bv_val == NULL ) {
+ tool_exit( ld, EXIT_FAILURE );
+ }
passwd.bv_len = strlen( passwd.bv_val );
}
}
}
vc_sasl_mech = ber_strdup(cvalue);
+ if (vc_sasl_mech == NULL) {
+ exit(EXIT_FAILURE);
+ }
#else
#endif
}
vc_sasl_realm = ber_strdup(cvalue);
+ if (vc_sasl_realm == NULL) {
+ exit(EXIT_FAILURE);
+ }
#else
fprintf(stderr,
_("%s: not compiled with SASL support\n"), prog);
}
vc_sasl_authcid = ber_strdup(cvalue);
+ if (vc_sasl_authcid == NULL) {
+ exit(EXIT_FAILURE);
+ }
#else
fprintf(stderr,
_("%s: not compiled with SASL support\n"), prog);
}
vc_sasl_authzid = ber_strdup(cvalue);
+ if (vc_sasl_authzid == NULL) {
+ exit(EXIT_FAILURE);
+ }
#else
fprintf(stderr,
_("%s: not compiled with SASL support\n"), prog);
}
vc_sasl_secprops = ber_strdup(cvalue);
+ if (vc_sasl_secprops == NULL) {
+ exit(EXIT_FAILURE);
+ }
#else
fprintf(stderr,
_("%s: not compiled with SASL support\n"), prog);