Skip to content

Commit

Permalink
Merge branch 'master' of github.com:tass-belgium/picotcp
Browse files Browse the repository at this point in the history
  • Loading branch information
Devon Kerkhove committed Oct 31, 2014
2 parents a151362 + 2f236b7 commit 495d373
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions modules/pico_ipv6.c
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ int pico_ipv6_to_string(char *ipbuf, const uint8_t ip[PICO_SIZE_IP6])
{
uint8_t dec = 0, i = 0;

if (!ipbuf) {
if (!ipbuf || !ip) {
pico_err = PICO_ERR_EINVAL;
return -1;
}
Expand Down Expand Up @@ -504,8 +504,10 @@ int pico_ipv6_process_routing(struct pico_ipv6_exthdr *routing, struct pico_fram
int pico_ipv6_process_frag(struct pico_ipv6_exthdr *fragm, struct pico_frame *f)
{
IGNORE_PARAMETER(fragm);
IGNORE_PARAMETER(f);

if (!f) {
pico_err = PICO_ERR_EINVAL;
return -1;
}
ipv6_dbg("IPv6: fragmentation extension header\n");
return 0;
}
Expand Down Expand Up @@ -984,6 +986,8 @@ void pico_ipv6_nd_dad(unsigned long now, void *arg)
IGNORE_PARAMETER(now);

l = pico_ipv6_link_istentative(&address);
if (!l)
return;
if (l->isduplicate) {
dbg("IPv6: duplicate address.\n");
if (pico_ipv6_is_linklocal(address.addr)) {
Expand Down

0 comments on commit 495d373

Please sign in to comment.