path: root/src/deprecated
diff options
authorEyal Birger <>2021-01-01 11:02:26 +0200
committerPablo Neira Ayuso <>2021-01-03 20:03:54 +0100
commitd05e9515b84074b0a0a49a2b49da31bd057bad7b (patch)
tree26df9ec48df9f9fa0e4987becc7cdc8dc37f1775 /src/deprecated
parentf20393c27802449d9b9c4e52540c716f1fc1ecc2 (diff)
examples: check return value of nfct_nlmsg_build()HEADmaster
nfct_nlmsg_build() may fail for different reasons, for example if insufficient parameters exist in the ct object. The resulting nlh would not contain any of the ct attributes. Some conntrack operations would still operate in such case, for example an IPCTNL_MSG_CT_DELETE message would just delete all existing conntrack entries. While the example as it is does supply correct parameters, it's safer as reference to validate the return value. Signed-off-by: Eyal Birger <> Signed-off-by: Pablo Neira Ayuso <>
Diffstat (limited to 'src/deprecated')
0 files changed, 0 insertions, 0 deletions