segfaults on trying to access pfd->addressfamily which doesn't exist).
git-svn-id: svn://svn.tartarus.org/sgt/putty@5444
cda61777-01e9-0310-a592-
d414129be87e
struct portfwd_data {
union control *addbutton, *rembutton, *listbox;
union control *sourcebox, *destbox, *direction;
struct portfwd_data {
union control *addbutton, *rembutton, *listbox;
union control *sourcebox, *destbox, *direction;
union control *addressfamily;
union control *addressfamily;
};
static void portfwd_handler(union control *ctrl, void *dlg,
};
static void portfwd_handler(union control *ctrl, void *dlg,
* Default is Local.
*/
dlg_radiobutton_set(ctrl, dlg, 0);
* Default is Local.
*/
dlg_radiobutton_set(ctrl, dlg, 0);
- } else if (ctrl == pfd->addressfamily) {
+#ifndef NO_IPV6
+ } else if (ctrl == pfd->addressfamily) {
dlg_radiobutton_set(ctrl, dlg, 0);
dlg_radiobutton_set(ctrl, dlg, 0);
}
} else if (event == EVENT_ACTION) {
if (ctrl == pfd->addbutton) {
}
} else if (event == EVENT_ACTION) {
if (ctrl == pfd->addbutton) {
whichbutton = dlg_radiobutton_get(pfd->addressfamily, dlg);
if (whichbutton == 1)
str[i++] = '4';
else if (whichbutton == 2)
str[i++] = '6';
whichbutton = dlg_radiobutton_get(pfd->addressfamily, dlg);
if (whichbutton == 1)
str[i++] = '4';
else if (whichbutton == 2)
str[i++] = '6';
whichbutton = dlg_radiobutton_get(pfd->direction, dlg);
if (whichbutton == 0)
whichbutton = dlg_radiobutton_get(pfd->direction, dlg);
if (whichbutton == 0)