mirror of
https://github.com/aljazceru/lightning.git
synced 2026-01-04 14:54:26 +01:00
Avoid passing uninitialized value dummy with uninitialized field addrlen to {initiator,responder}_handshake_
This commit is contained in:
committed by
Christian Decker
parent
6c50d70e68
commit
d50fb131b6
@@ -223,6 +223,7 @@ int main(void)
|
||||
e_priv = privkey("1212121212121212121212121212121212121212121212121212121212121212");
|
||||
e_pub = pubkey("036360e856310ce5d294e8be33fc807077dc56ac80d95d9cd4ddbd21325eff73f7");
|
||||
|
||||
dummy.addrlen = 0;
|
||||
initiator_handshake(ctx, &ls_pub, &rs_pub, &dummy, success, ctx);
|
||||
/* Should not exit! */
|
||||
abort();
|
||||
|
||||
@@ -219,6 +219,7 @@ int main(void)
|
||||
e_priv = privkey("2222222222222222222222222222222222222222222222222222222222222222");
|
||||
e_pub = pubkey("02466d7fcae563e5cb09a0d1870bb580344804617879a14949cf22285f1bae3f27");
|
||||
|
||||
dummy.addrlen = 0;
|
||||
responder_handshake(ctx, &ls_pub, &dummy, success, ctx);
|
||||
/* Should not exit! */
|
||||
abort();
|
||||
|
||||
Reference in New Issue
Block a user