Skip to content
Snippets Groups Projects
Commit 65760c06 authored by Kurt Zeilenga's avatar Kurt Zeilenga
Browse files

ITS#2004 AD lang bug fix

parent 505a141c
No related branches found
No related tags found
No related merge requests found
......@@ -364,15 +364,18 @@ done:;
}
static int is_ad_sublang(
const char *sublang,
const char *suplang )
struct berval *sublangbv,
struct berval *suplangbv )
{
const char *supp, *supdelimp;
const char *subp, *subdelimp;
const char *suplang, *supp, *supdelimp;
const char *sublang, *subp, *subdelimp;
int suplen, sublen;
if( suplang == NULL ) return 1;
if( sublang == NULL ) return 0;
if( suplangbv->bv_len == 0 ) return 1;
if( sublangbv->bv_len == 0 ) return 0;
sublang =sublangbv->bv_val;
suplang =suplangbv->bv_val;
for( supp=suplang ; supp; supp=supdelimp ) {
supdelimp = strchrlen( supp, ';', &suplen );
......@@ -413,7 +416,7 @@ int is_ad_subtype(
}
/* check for language tags */
if ( !is_ad_sublang( sub->ad_lang.bv_val, super->ad_lang.bv_val )) {
if ( !is_ad_sublang( &sub->ad_lang, &super->ad_lang )) {
return 0;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment