Hi Tomasz, > I guess you don't want to continue looping after you found your chain. On > success, make it break. Looking the code, in other functions like nft_chain_user_del, i guess that the loop continue after found the chain. Am i wrong? > And on error your function should return the error code. return ret == 0 ? 1 : 0; is it ok this code? Thanks -- To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html