]> git.sur5r.net Git - openldap/blobdiff - libraries/libldap/schema.c
Fix ITS#1843, don't deref NULL string in ldap_pvt_str2upper
[openldap] / libraries / libldap / schema.c
index 783c6127fc4fd272434db1c770a5a7e97ef149e5..4fd83bc4bd182bbd95ba5eb69c4014bca89fd0c4 100644 (file)
@@ -2341,7 +2341,7 @@ static char *const err2text[] = {
 char *
 ldap_scherr2str(int code)
 {
-       if ( code < 0 || code >= (sizeof(err2text)/sizeof(char *)) ) {
+       if ( code < 0 || code >= (int)(sizeof(err2text)/sizeof(char *)) ) {
                return "Unknown error";
        } else {
                return err2text[code];