Deleted
Added
nxt_cert.c (1813:10aaca1e582e) | nxt_cert.c (1820:e969cea13cc3) |
---|---|
1 2/* 3 * Copyright (C) Valentin V. Bartenev 4 * Copyright (C) NGINX, Inc. 5 */ 6 7#include <nxt_main.h> 8#include <nxt_conf.h> --- 708 unchanged lines hidden (view full) --- 717 &str, i++); 718 if (nxt_slow_path(ret != NXT_OK)) { 719 goto fail; 720 } 721 } 722 723 if (alt_names != NULL) { 724 count = sk_GENERAL_NAME_num(alt_names); | 1 2/* 3 * Copyright (C) Valentin V. Bartenev 4 * Copyright (C) NGINX, Inc. 5 */ 6 7#include <nxt_main.h> 8#include <nxt_conf.h> --- 708 unchanged lines hidden (view full) --- 717 &str, i++); 718 if (nxt_slow_path(ret != NXT_OK)) { 719 goto fail; 720 } 721 } 722 723 if (alt_names != NULL) { 724 count = sk_GENERAL_NAME_num(alt_names); |
725 n = 0; |
|
725 | 726 |
726 for (n = 0; n != count; n++) { 727 name = sk_GENERAL_NAME_value(alt_names, n); | 727 for (i = 0; i != count; i++) { 728 name = sk_GENERAL_NAME_value(alt_names, i); |
728 729 if (name->type != GEN_DNS) { 730 continue; 731 } | 729 730 if (name->type != GEN_DNS) { 731 continue; 732 } |
733 734 n++; |
|
732 } 733 734 names = nxt_conf_create_array(mp, n); 735 if (nxt_slow_path(names == NULL)) { 736 goto fail; 737 } 738 739 for (n = 0, i = 0; n != count; n++) { --- 460 unchanged lines hidden --- | 735 } 736 737 names = nxt_conf_create_array(mp, n); 738 if (nxt_slow_path(names == NULL)) { 739 goto fail; 740 } 741 742 for (n = 0, i = 0; n != count; n++) { --- 460 unchanged lines hidden --- |