Changeset 15d0046 in mainline for uspace/srv/net/dhcp/dhcp.c


Ignore:
Timestamp:
2014-09-12T13:22:33Z (10 years ago)
Author:
Vojtech Horky <vojtechhorky@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
9b20126
Parents:
8db09e4 (diff), 105d8d6 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge mainline changes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/net/dhcp/dhcp.c

    r8db09e4 r15d0046  
    304304                        break;
    305305                case opt_dns_server:
    306                         if (opt_len != 4)
     306                        if (opt_len < 4 || opt_len % 4 != 0)
    307307                                return EINVAL;
     308                        /* XXX Handle multiple DNS servers properly */
    308309                        inet_addr_set(dhcp_uint32_decode(&msgb[i]),
    309310                            &offer->dns_server);
     
    435436
    436437        dlink->link_id = link_id;
    437         dlink->timeout = fibril_timer_create();
     438        dlink->timeout = fibril_timer_create(NULL);
    438439        if (dlink->timeout == NULL) {
    439440                rc = ENOMEM;
Note: See TracChangeset for help on using the changeset viewer.