~ubuntu-branches/ubuntu/precise/krb5/precise-updates

« back to all changes in this revision

Viewing changes to src/plugins/kdb/ldap/libkdb_ldap/ldap_pwd_policy.c

  • Committer: Package Import Robot
  • Author(s): Sam Hartman
  • Date: 2011-12-01 19:34:41 UTC
  • mfrom: (28.1.14 sid)
  • Revision ID: package-import@ubuntu.com-20111201193441-9tipg3aru1jsidyv
Tags: 1.10+dfsg~alpha1-6
* Fix segfault with unknown hostnames in krb5_sname_to_principal,
  Closes: #650671
* Indicate that this library breaks libsmbclient versions that depend on
  krb5_locate_kdc, Closes: #650603, #650611

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/* -*- mode: c; c-basic-offset: 4; indent-tabs-mode: nil -*- */
 
2
/* plugins/kdb/ldap/libkdb_ldap/ldap_pwd_policy.c */
2
3
/*
3
 
 * lib/kdb/kdb_ldap/ldap_pwd_policy.c
4
 
 *
5
4
 * Copyright (c) 2004-2005, Novell, Inc.
6
5
 * All rights reserved.
7
6
 *
77
76
    rdns = ldap_explode_dn(policy_dn, 1);
78
77
    if (rdns == NULL) {
79
78
        st = EINVAL;
80
 
        krb5_set_error_message(context, st, "Invalid password policy DN syntax");
 
79
        krb5_set_error_message(context, st,
 
80
                               _("Invalid password policy DN syntax"));
81
81
        goto cleanup;
82
82
    }
83
83
 
198
198
                osa_policy_ent_t pol_entry)
199
199
{
200
200
    int st = 0;
201
 
    char *pol_dn;
202
201
 
203
202
    pol_entry->name = strdup(pol_name);
204
203
    CHECK_NULL(pol_entry->name);