~ubuntu-branches/ubuntu/maverick/openldap/maverick-proposed

« back to all changes in this revision

Viewing changes to contrib/slapd-modules/nssov/protocol.c

  • Committer: Bazaar Package Importer
  • Author(s): Mathias Gug
  • Date: 2009-09-07 13:41:10 UTC
  • mto: This revision was merged to the branch mainline in revision 19.
  • Revision ID: james.westby@ubuntu.com-20090907134110-jsdrvn0atu1fex4m
Tags: upstream-2.4.18
ImportĀ upstreamĀ versionĀ 2.4.18

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/* protocol.c - network protocol lookup routines */
2
 
/* $OpenLDAP: pkg/ldap/contrib/slapd-modules/nssov/protocol.c,v 1.1.2.2 2009/06/03 20:46:55 quanah Exp $ */
3
 
/*
4
 
 * Copyright 2008 by Howard Chu, Symas Corp.
 
2
/* $OpenLDAP: pkg/ldap/contrib/slapd-modules/nssov/protocol.c,v 1.1.2.4 2009/08/24 17:35:29 quanah Exp $ */
 
3
/* This work is part of OpenLDAP Software <http://www.openldap.org/>. 
 
4
 *
 
5
 * Copyright 2008-2009 The OpenLDAP Foundation.
 
6
 * Portions Copyright 2008 by Howard Chu, Symas Corp.
5
7
 * All rights reserved.
6
8
 *
7
9
 * Redistribution and use in source and binary forms, with or without
13
15
 * <http://www.OpenLDAP.org/license.html>.
14
16
 */
15
17
/*
 
18
/* ACKNOWLEDGEMENTS:
16
19
 * This code references portions of the nss-ldapd package
17
20
 * written by Arthur de Jong. The nss-ldapd code was forked
18
21
 * from the nss-ldap library written by Luke Howard.
72
75
        } else {
73
76
                dupname = -1;
74
77
                for (i=0; i<numname; i++) {
75
 
                        if ( ber_bvmatch(&name, &a->a_nvals[i])) {
 
78
                        if ( bvmatch(&name, &a->a_nvals[i])) {
76
79
                                dupname = i;
77
80
                                break;
78
81
                        }