Don't delete everything under a string-subkeyed primary key by using a
authorsimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Fri, 15 Jul 2011 18:30:47 +0000 (18:30 +0000)
committersimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Fri, 15 Jul 2011 18:30:47 +0000 (18:30 +0000)
commit52112bad8df0cb279c147dbeb42526aeeed07011
treed479a93f7a8b115f851ca828ded9f3f9af5dc99d
parent783c82b3c5bb0f07deae79e012a864a54bec8749
Don't delete everything under a string-subkeyed primary key by using a
loop that fetches the next item using conf_get_str_strs and passing
the previous key as a parameter, because the previous key will have
been freed by the intervening conf_del_str_str. Instead, use the
technique of repeatedly using conf_get_str_nthstrkey with index 0 and
deleting what comes back, as PSCP and PSFTP do.

Spotted by Minefield with the aid of Jacob, or possibly vice versa.

git-svn-id: svn://svn.tartarus.org/sgt/putty@9220 cda61777-01e9-0310-a592-d414129be87e
settings.c