diff options
author | Sander Vrijders <[email protected]> | 2017-08-30 14:12:28 +0000 |
---|---|---|
committer | dimitri staessens <[email protected]> | 2017-08-30 14:12:28 +0000 |
commit | 399164eff1c6d07056ec93e3afd4079611cf9c7b (patch) | |
tree | befee04fa22eeb818d8710e44fa6a9b669a01745 /src/ipcpd/shim-eth-llc | |
parent | 8fe0340d2117cf9b5c724ff10621978ef2bee5f1 (diff) | |
parent | a770296c7aa15057602a4e4f5c7744ccfc65b8aa (diff) | |
download | ouroboros-399164eff1c6d07056ec93e3afd4079611cf9c7b.tar.gz ouroboros-399164eff1c6d07056ec93e3afd4079611cf9c7b.zip |
Merged in sandervrijders/ouroboros/be-connect (pull request #582)
Be connect
Diffstat (limited to 'src/ipcpd/shim-eth-llc')
-rw-r--r-- | src/ipcpd/shim-eth-llc/main.c | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/src/ipcpd/shim-eth-llc/main.c b/src/ipcpd/shim-eth-llc/main.c index 292ecbe7..be29c585 100644 --- a/src/ipcpd/shim-eth-llc/main.c +++ b/src/ipcpd/shim-eth-llc/main.c @@ -993,18 +993,9 @@ static int eth_llc_ipcp_bootstrap(const struct ipcp_config * conf) static int eth_llc_ipcp_reg(const uint8_t * hash) { - uint8_t * hash_dup; - - hash_dup = ipcp_hash_dup(hash); - if (hash_dup == NULL) { - log_err("Failed to duplicate hash."); - return -ENOMEM; - } - - if (shim_data_reg_add_entry(eth_llc_data.shim_data, hash_dup)) { + if (shim_data_reg_add_entry(eth_llc_data.shim_data, hash)) { log_err("Failed to add " HASH_FMT " to local registry.", HASH_VAL(hash)); - free(hash_dup); return -1; } |