Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 199222 | Differences between
and this patch

Collapse All | Expand All

(-)modules/enumroute.cpp.orig (+29 lines)
Lines 106-111 Link Here
106
    return n+1;
106
    return n+1;
107
}
107
}
108
108
109
#ifdef __UCLIBC__
110
/* lifted from openbsd source */
111
static int dn_skipname(const u_char *comp_dn, const u_char *eom)
112
{
113
        const u_char *cp;
114
        int n;
115
116
        cp = comp_dn;
117
        while (cp < eom && (n = *cp++)) {
118
                /*
119
                 * check for indirection
120
                 */
121
                switch (n & INDIR_MASK) {
122
                case 0:                 /* normal case, n == len */
123
                        cp += n;
124
                        continue;
125
                case INDIR_MASK:        /* indirection */
126
                        cp++;
127
                        break;
128
                default:                /* illegal type */
129
                        return (-1);
130
                }
131
                break;
132
        }
133
        if (cp > eom)
134
                return (-1);
135
        return (cp - comp_dn);
136
}
137
#endif
109
138
110
static String s_prefix;
139
static String s_prefix;
111
static String s_forkStop;
140
static String s_forkStop;

Return to bug 199222