]> git.sur5r.net Git - openldap/blobdiff - libraries/liblunicode/ure/ure.c
Happy New Year
[openldap] / libraries / liblunicode / ure / ure.c
index ffbd9b5e2cd2a9b70fcf0127db670c4f4f816b97..d91d01a848bf378c7b609c8c72d27cc2754f69be 100644 (file)
@@ -1,7 +1,7 @@
 /* $OpenLDAP$ */
 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
  *
- * Copyright 1998-2014 The OpenLDAP Foundation.
+ * Copyright 1998-2018 The OpenLDAP Foundation.
  * All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
@@ -416,7 +416,7 @@ _ure_prop_list(ucs2_t *pp, unsigned long limit, unsigned long *mask,
           b->error = _URE_INVALID_PROPERTY;
     }
 
-    if (n != 0)
+    if (b->error == _URE_OK && n != 0)
       m |= cclass_flags[n];
 
     /*