X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=lib%2Fdhcp.c;h=a8f024482b3a8a62eec3d3baf51a4a53730cf091;hb=da0603cf278a9f505dc2988602ec0071c771dd2e;hp=f0c36442dca39da56eec1c688aaa3e29b4cbf302;hpb=34e63086edddcae06d7c1a4fa84fec0861e50758;p=openvswitch diff --git a/lib/dhcp.c b/lib/dhcp.c index f0c36442..a8f02448 100644 --- a/lib/dhcp.c +++ b/lib/dhcp.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2008 Nicira Networks. + * Copyright (c) 2008, 2010 Nicira Networks. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -674,7 +674,7 @@ dhcp_parse(struct dhcp_msg *msg, const struct ofpbuf *b_) msg->giaddr = dhcp->giaddr; memcpy(msg->chaddr, dhcp->chaddr, ETH_ADDR_LEN); - cookie = ofpbuf_try_pull(&b, sizeof cookie); + cookie = ofpbuf_try_pull(&b, sizeof *cookie); if (cookie) { if (ntohl(*cookie) == DHCP_OPTS_COOKIE) { uint8_t overload;