Merge pull request #580 from wigyori/cc-libpcap
[15.05/openwrt.git] / package / network / services / dropbear / patches / 610-skip-default-keys-in-custom-runs.patch
1 --- a/svr-runopts.c
2 +++ b/svr-runopts.c
3 @@ -488,6 +488,7 @@ void load_all_hostkeys() {
4                 m_free(hostkey_file);
5         }
6  
7 +       if (svr_opts.num_hostkey_files <= 0) {
8  #ifdef DROPBEAR_RSA
9         loadhostkey(RSA_PRIV_FILENAME, 0);
10  #endif
11 @@ -499,6 +500,7 @@ void load_all_hostkeys() {
12  #ifdef DROPBEAR_ECDSA
13         loadhostkey(ECDSA_PRIV_FILENAME, 0);
14  #endif
15 +       }
16  
17  #ifdef DROPBEAR_DELAY_HOSTKEY
18         if (svr_opts.delay_hostkey) {