fix strtok loop
authorPaul Mackerras <paulus@samba.org>
Wed, 21 Jul 1999 00:21:02 +0000 (00:21 +0000)
committerPaul Mackerras <paulus@samba.org>
Wed, 21 Jul 1999 00:21:02 +0000 (00:21 +0000)
pppd/sys-linux.c

index d494c847e4e689eecf32fadb6093e03c1e24804b..4cc8987cc57b84cce67e167de7b4779379da14e5 100644 (file)
@@ -1157,6 +1157,7 @@ static int read_route_table(struct rtentry *rt)
        cols[col] = strtok(p, route_delims);
        if (cols[col] == NULL)
            return 0;           /* didn't get enough columns */
+       p = NULL;
     }
 
     ((struct sockaddr_in *) &rt->rt_dst)->sin_addr.s_addr =