]> git.puffer.fish Git - matthieu/frr.git/commit
ripd: null check the key string
authorlyq140 <34637052+lyq140@users.noreply.github.com>
Wed, 1 Aug 2018 04:03:24 +0000 (12:03 +0800)
committerlyq140 <34637052+lyq140@users.noreply.github.com>
Wed, 1 Aug 2018 04:03:24 +0000 (12:03 +0800)
commite65e227f28bf274abf4b46f656c0cb94e7428560
tree2507cbff401ba02f9dcf097c0e872151b54e828f
parente841105b615c29e98fe5b753afd221d437ae0b9c
ripd: null check the key string

This fix a crash of  null pointer.
when we don't add a key string or delete it,
the key is not null but key string is null,
so the code have to return.

Signed-off-by: lyq140 <34637052+lyq140@users.noreply.github.com>
ripd/ripd.c