Bluetooth: SMP: Fix zeroing smp
Bluetooth: SMP: Fix zeroing smp

In smp_init we reset smp so that Pairing Failed command is deleted
from allowable commands and the pointer to the associated conn is lost.
With this patch associated conn is copied and the Pairing Failed
command is marked as allowed.

Change-Id: I7a71f985ca9d9d332e392aeb9368053a8c084750
Signed-off-by: Mariusz Skamra <c73850bd0bf85e95dce44c2ce1418ca55c1b6c5d@tieto.com>

punitvara/zephyr,runchip/zephyr-cc3220,jamesonwilliams/zephyr-kernel,bigdinotech/zephyr,rsalveti/zephyr,bboozzoo/zephyr,bigdinotech/zephyr,nashif/zephyr,punitvara/zephyr,pklazy/zephyr,GiulianoFranchetto/zephyr,runchip/zephyr-cc3200,nashif/zephyr,ldts/zephyr,galak/zephyr,ldts/zephyr,runchip/zephyr-cc3200,runchip/zephyr-cc3220,pklazy/zephyr,coldnew/zephyr-project-fork,fractalclone/zephyr-riscv,bboozzoo/zephyr,holtmann/zephyr,32bitmicro/zephyr,galak/zephyr,sharronliu/zephyr,sharronliu/zephyr,holtmann/zephyr,zephyriot/zephyr,GiulianoFranchetto/zephyr,GiulianoFranchetto/zephyr,erwango/zephyr,explora26/zephyr,pklazy/zephyr,pklazy/zephyr,tidyjiang8/zephyr-doc,tidyjiang8/zephyr-doc,32bitmicro/zephyr,coldnew/zephyr-project-fork,runchip/zephyr-cc3200,GiulianoFranchetto/zephyr,zephyriot/zephyr,nashif/zephyr,Vudentz/zephyr,sharronliu/zephyr,erwango/zephyr,mbolivar/zephyr,sharronliu/zephyr,runchip/zephyr-cc3220,nashif/zephyr,erwango/zephyr,Vudentz/zephyr,zephyriot/zephyr,zephyrproject-rtos/zephyr,mirzak/zephyr-os,aceofall/zephyr-iotos,erwango/zephyr,mbolivar/zephyr,kraj/zephyr,coldnew/zephyr-project-fork,galak/zephyr,aceofall/zephyr-iotos,explora26/zephyr,aceofall/zephyr-iotos,holtmann/zephyr,mbolivar/zephyr,ldts/zephyr,bigdinotech/zephyr,bboozzoo/zephyr,tidyjiang8/zephyr-doc,fbsder/zephyr,runchip/zephyr-cc3220,fractalclone/zephyr-riscv,tidyjiang8/zephyr-doc,explora26/zephyr,jamesonwilliams/zephyr-kernel,rsalveti/zephyr,kraj/zephyr,Vudentz/zephyr,rsalveti/zephyr,Vudentz/zephyr,zephyriot/zephyr,fractalclone/zephyr-riscv,ldts/zephyr,Vudentz/zephyr,zephyrproject-rtos/zephyr,mirzak/zephyr-os,nashif/zephyr,punitvara/zephyr,rsalveti/zephyr,Vudentz/zephyr,zephyrproject-rtos/zephyr,runchip/zephyr-cc3220,fractalclone/zephyr-riscv,runchip/zephyr-cc3200,rsalveti/zephyr,mbolivar/zephyr,fbsder/zephyr,pklazy/zephyr,GiulianoFranchetto/zephyr,kraj/zephyr,finikorg/zephyr,jamesonwilliams/zephyr-kernel,mirzak/zephyr-os,finikorg/zephyr,finikorg/zephyr,explora26/zephyr,coldnew/zephyr-project-fork,finikorg/zephyr,bigdinotech/zephyr,kraj/zephyr,zephyriot/zephyr,bboozzoo/zephyr,fbsder/zephyr,galak/zephyr,jamesonwilliams/zephyr-kernel,mirzak/zephyr-os,kraj/zephyr,runchip/zephyr-cc3200,aceofall/zephyr-iotos,zephyrproject-rtos/zephyr,sharronliu/zephyr,bboozzoo/zephyr,32bitmicro/zephyr,32bitmicro/zephyr,punitvara/zephyr,fbsder/zephyr,32bitmicro/zephyr,mirzak/zephyr-os,fractalclone/zephyr-riscv,ldts/zephyr,holtmann/zephyr,holtmann/zephyr,fbsder/zephyr,erwango/zephyr,coldnew/zephyr-project-fork,aceofall/zephyr-iotos,finikorg/zephyr,mbolivar/zephyr,jamesonwilliams/zephyr-kernel,tidyjiang8/zephyr-doc,punitvara/zephyr,zephyrproject-rtos/zephyr,bigdinotech/zephyr,explora26/zephyr,galak/zephyr