Skip to content

gnrc_ipv6_nib: Remove stray assert() in _handle_aro()#8087

Merged
bergzand merged 1 commit intoRIOT-OS:gnrc_netif2_integration/masterfrom
miri64:gnrc_ipv6_nib/fix/stray-assert
Nov 20, 2017
Merged

gnrc_ipv6_nib: Remove stray assert() in _handle_aro()#8087
bergzand merged 1 commit intoRIOT-OS:gnrc_netif2_integration/masterfrom
miri64:gnrc_ipv6_nib/fix/stray-assert

Conversation

@miri64
Copy link
Copy Markdown
Member

@miri64 miri64 commented Nov 20, 2017

Fixes a bug reported by @cgundogan and @bergzand in IRC.

This assertion doesn't make any sense. The function is called by
_copy_and_handle_aro() on a router which causes nce to be NULL
(because there is no NCE known yet) and then the function called
directly after (_reg_addr_upstream()) checks if nce might be NULL and
creates an NCE if necessary.

This assertion doesn't make any sense. The function is called by
_copy_and_handle_aro() on a router which causes `nce` to be NULL
(because there is no NCE known yet) and then the function called
directly after (_reg_addr_upstream()) checks if `nce` might be NULL and
creates an NCE if necessary.
@miri64 miri64 added Type: bug The issue reports a bug / The PR fixes a bug (including spelling errors) GNRC Area: network Area: Networking CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR labels Nov 20, 2017
Copy link
Copy Markdown
Member

@bergzand bergzand left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ack

@bergzand bergzand merged commit 460d3c4 into RIOT-OS:gnrc_netif2_integration/master Nov 20, 2017
@miri64 miri64 deleted the gnrc_ipv6_nib/fix/stray-assert branch November 20, 2017 13:29
@aabadie aabadie added this to the Release 2018.01 milestone Jan 18, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Area: network Area: Networking CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR Type: bug The issue reports a bug / The PR fixes a bug (including spelling errors)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants