OLD | NEW |
(Empty) | |
| 1 diff -burN android-openssl.orig/crypto/x509/by_dir.c android-openssl/crypto/x509
/by_dir.c |
| 2 --- android-openssl.orig/crypto/x509/by_dir.c 2013-03-21 16:48:31.546092948 +0
100 |
| 3 +++ android-openssl/crypto/x509/by_dir.c 2013-03-21 16:48:44.916234272 +0
100 |
| 4 @@ -287,6 +287,8 @@ |
| 5 int ok=0; |
| 6 int i,j,k; |
| 7 unsigned long h; |
| 8 + unsigned long hash_array[2]; |
| 9 + int hash_index; |
| 10 BUF_MEM *b=NULL; |
| 11 X509_OBJECT stmp,*tmp; |
| 12 const char *postfix=""; |
| 13 @@ -323,6 +325,11 @@ |
| 14 ctx=(BY_DIR *)xl->method_data; |
| 15 |
| 16 h=X509_NAME_hash(name); |
| 17 + hash_array[0]=h; |
| 18 + hash_array[1]=X509_NAME_hash_old(name); |
| 19 + for (hash_index=0; hash_index < 2; hash_index++) |
| 20 + { |
| 21 + h=hash_array[hash_index]; |
| 22 for (i=0; i < sk_BY_DIR_ENTRY_num(ctx->dirs); i++) |
| 23 { |
| 24 BY_DIR_ENTRY *ent; |
| 25 @@ -476,6 +483,7 @@ |
| 26 goto finish; |
| 27 } |
| 28 } |
| 29 + } |
| 30 finish: |
| 31 if (b != NULL) BUF_MEM_free(b); |
| 32 return(ok); |
OLD | NEW |