diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2008-06-05 01:10:03 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2008-06-05 01:10:03 +0000 |
commit | 49b78fc1a8f1591fa172399b3be1dba4b7f23554 (patch) | |
tree | f34271a9e766725cb6ce59c35cc98d91ddf137ac /networking | |
parent | a3087ca7495e33b19b122869d17defeb9c933d19 (diff) | |
download | busybox-w32-1_10_3.tar.gz busybox-w32-1_10_3.tar.bz2 busybox-w32-1_10_3.zip |
Apply post-1.10.2 fixes, bump version to 1.10.31_10_3
Diffstat (limited to 'networking')
-rw-r--r-- | networking/dnsd.c | 8 | ||||
-rw-r--r-- | networking/interface.c | 2 | ||||
-rw-r--r-- | networking/isrv_identd.c | 2 | ||||
-rw-r--r-- | networking/libiproute/ip_parse_common_args.c | 2 |
4 files changed, 8 insertions, 6 deletions
diff --git a/networking/dnsd.c b/networking/dnsd.c index cb62d2081..97ba2dc6a 100644 --- a/networking/dnsd.c +++ b/networking/dnsd.c | |||
@@ -194,7 +194,8 @@ static int table_lookup(uint16_t type, uint8_t * as, uint8_t * qs) | |||
194 | for (i = 1; i <= (int)(d->name[0]); i++) | 194 | for (i = 1; i <= (int)(d->name[0]); i++) |
195 | if (tolower(qs[i]) != d->name[i]) | 195 | if (tolower(qs[i]) != d->name[i]) |
196 | break; | 196 | break; |
197 | if (i > (int)(d->name[0])) { | 197 | if (i > (int)(d->name[0]) || |
198 | (d->name[0] == 1 && d->name[1] == '*')) { | ||
198 | strcpy((char *)as, d->ip); | 199 | strcpy((char *)as, d->ip); |
199 | #if DEBUG | 200 | #if DEBUG |
200 | fprintf(stderr, " OK as:%s\n", as); | 201 | fprintf(stderr, " OK as:%s\n", as); |
@@ -202,7 +203,8 @@ static int table_lookup(uint16_t type, uint8_t * as, uint8_t * qs) | |||
202 | return 0; | 203 | return 0; |
203 | } | 204 | } |
204 | } else if (type == REQ_PTR) { /* search by IP-address */ | 205 | } else if (type == REQ_PTR) { /* search by IP-address */ |
205 | if (!strncmp((char*)&d->rip[1], (char*)&qs[1], strlen(d->rip)-1)) { | 206 | if ((d->name[0] != 1 || d->name[1] != '*') && |
207 | !strncmp((char*)&d->rip[1], (char*)&qs[1], strlen(d->rip)-1)) { | ||
206 | strcpy((char *)as, d->name); | 208 | strcpy((char *)as, d->name); |
207 | return 0; | 209 | return 0; |
208 | } | 210 | } |
@@ -401,7 +403,7 @@ int dnsd_main(int argc ATTRIBUTE_UNUSED, char **argv) | |||
401 | r = process_packet(buf); | 403 | r = process_packet(buf); |
402 | if (r <= 0) | 404 | if (r <= 0) |
403 | continue; | 405 | continue; |
404 | send_to_from(udps, buf, r, 0, &to->u.sa, &from->u.sa, lsa->len); | 406 | send_to_from(udps, buf, r, 0, &from->u.sa, &to->u.sa, lsa->len); |
405 | } | 407 | } |
406 | return 0; | 408 | return 0; |
407 | } | 409 | } |
diff --git a/networking/interface.c b/networking/interface.c index 44bd8d3d9..cdd31da64 100644 --- a/networking/interface.c +++ b/networking/interface.c | |||
@@ -223,7 +223,7 @@ static char *UNSPEC_print(unsigned char *ptr) | |||
223 | char *pos; | 223 | char *pos; |
224 | unsigned int i; | 224 | unsigned int i; |
225 | 225 | ||
226 | if (!buff); | 226 | if (!buff) |
227 | buff = xmalloc(sizeof(struct sockaddr) * 3 + 1); | 227 | buff = xmalloc(sizeof(struct sockaddr) * 3 + 1); |
228 | pos = buff; | 228 | pos = buff; |
229 | for (i = 0; i < sizeof(struct sockaddr); i++) { | 229 | for (i = 0; i < sizeof(struct sockaddr); i++) { |
diff --git a/networking/isrv_identd.c b/networking/isrv_identd.c index d60c9fbaf..a96ac6041 100644 --- a/networking/isrv_identd.c +++ b/networking/isrv_identd.c | |||
@@ -113,7 +113,7 @@ int fakeidentd_main(int argc ATTRIBUTE_UNUSED, char **argv) | |||
113 | strncpy(bogouser, argv[optind], sizeof(bogouser)); | 113 | strncpy(bogouser, argv[optind], sizeof(bogouser)); |
114 | 114 | ||
115 | /* Daemonize if no -f and no -i and no -w */ | 115 | /* Daemonize if no -f and no -i and no -w */ |
116 | if (!(opt & OPT_fiw)); | 116 | if (!(opt & OPT_fiw)) |
117 | bb_daemonize_or_rexec(0, argv); | 117 | bb_daemonize_or_rexec(0, argv); |
118 | 118 | ||
119 | /* Where to log in inetd modes? "Classic" inetd | 119 | /* Where to log in inetd modes? "Classic" inetd |
diff --git a/networking/libiproute/ip_parse_common_args.c b/networking/libiproute/ip_parse_common_args.c index 294bde540..5e4012b81 100644 --- a/networking/libiproute/ip_parse_common_args.c +++ b/networking/libiproute/ip_parse_common_args.c | |||
@@ -54,7 +54,7 @@ char **ip_parse_common_args(char **argv) | |||
54 | break; | 54 | break; |
55 | } | 55 | } |
56 | } | 56 | } |
57 | arg = index_in_strings(ip_common_commands, opt); | 57 | arg = index_in_substrings(ip_common_commands, opt); |
58 | if (arg < 0) | 58 | if (arg < 0) |
59 | bb_show_usage(); | 59 | bb_show_usage(); |
60 | if (arg == ARG_oneline) { | 60 | if (arg == ARG_oneline) { |