---
 lib/attr-decode.c              | 2 +-
 modules/ldap/mod_webauthldap.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/lib/attr-decode.c b/lib/attr-decode.c
index bcd6bb2..20320e6 100644
--- a/lib/attr-decode.c
+++ b/lib/attr-decode.c
@@ -249,7 +249,7 @@ decode_number(struct webauth_context *ctx, struct value 
*value,
     if (ascii) {
         errno = 0;
         *output = strtoul(value->data,&end, 10);
-        if (*end != '\0' || (*output == ULONG_MAX&&  errno != 0))
+        if (*end != '\0' || (*output == UINT32_MAX&&  errno != 0))
             goto corrupt;
     } else {
         if (value->length != sizeof(uint32_t))
diff --git a/modules/ldap/mod_webauthldap.c b/modules/ldap/mod_webauthldap.c
index 5701720..87489b1 100644
--- a/modules/ldap/mod_webauthldap.c
+++ b/modules/ldap/mod_webauthldap.c
@@ -711,7 +711,7 @@ webauthldap_dosearch(MWAL_LDAP_CTXT* lc)
             }
             if (lc->sconf->debug)
                 ap_log_error(APLOG_MARK, APLOG_INFO, 0, lc->r->server,
-                             "webauthldap(%s): search returned %d entries",
+                             "webauthldap(%s): search returned %zu entries",
                              lc->r->user, lc->numEntries);
         }
         ldap_msgfree(res);
--
1.8.1.4



Reply via email to