common/utils.c: Correctly handle NULL taken pointer in tal_dup_talarr.

Fixes: #3757

Reported-by: @sumBTC

Changelog-None
This commit is contained in:
ZmnSCPxj jxPCSnmZ
2020-06-22 12:15:42 +08:00
committed by Rusty Russell
parent a25af262e9
commit c100de6d93
2 changed files with 5 additions and 3 deletions

View File

@@ -3019,7 +3019,6 @@ def test_keysend(node_factory):
assert(inv['msatoshi_received'] >= amt)
@pytest.mark.xfail(strict=True)
def test_invalid_onion_channel_update(node_factory):
'''
Some onion failures "should" send a `channel_update`.