Fix header lookup table setup in slocal(1)
authorVasily Kolobkov <>
Sun, 5 Jun 2016 22:08:14 +0000 (00:08 +0200)
committerPhilipp Takacs <philipp@bureaucracy.de>
Thu, 21 Jul 2016 14:37:05 +0000 (16:37 +0200)
uip/slocal.c

index bff4320..9306f94 100644 (file)
@@ -765,7 +765,7 @@ parse(int fd)
                case FLD2:
                        lp = mh_xstrdup(f.value);
                        for (p = hdrs; p->p_name; p++) {
-                               if (mh_strcasecmp(p->p_name, f.name)!=0) {
+                               if (mh_strcasecmp(p->p_name, f.name) == 0) {
                                        if (!(p->p_flags & P_HID)) {
                                                if ((cp = p->p_value)) {
                                                        if (p->p_flags & P_ADR) {