dhcp: Make dhcp_option_to_string() act sensibly with null or empty options.
[sliver-openvswitch.git] / debian / ofp-switch-setup
index 275ddfc..aa318d7 100755 (executable)
@@ -122,6 +122,8 @@ my (@states) =
                        $value =~ s/\\([0-7][0-7][0-7])/chr($1)/ge;
                    } else {
                        $value =~ s/^(0x[[:xdigit:]]+)$/hex($1)/e;
+                       $value = '' if $value eq 'empty';
+                       next if $value eq 'null'; # Shouldn't happen.
                    }
                    $options{$name} = $value;
                }