Updates from 0.9.8-stable branch.
[openssl.git] / crypto / x509 / by_dir.c
index f02168ab92a255ff85645fdb10608bb04b3a0f44..a368adecec4fb317f6dd25aa190ce815142ff9a1 100644 (file)
@@ -230,7 +230,7 @@ static int add_cert_dir(BY_DIR *ctx, const char *dir, int type)
                        for (j=0; j < sk_BY_DIR_ENTRY_num(ctx->dirs); j++)
                                {
                                ent = sk_BY_DIR_ENTRY_value(ctx->dirs, j);
                        for (j=0; j < sk_BY_DIR_ENTRY_num(ctx->dirs); j++)
                                {
                                ent = sk_BY_DIR_ENTRY_value(ctx->dirs, j);
-                               if (strlen(ent->dir) == len &&
+                               if (strlen(ent->dir) == (size_t)len &&
                                    strncmp(ent->dir,ss,(unsigned int)len) == 0)
                                        break;
                                }
                                    strncmp(ent->dir,ss,(unsigned int)len) == 0)
                                        break;
                                }