Attention is currently required from: Pablo Neira Ayuso, laforge, pespin. neels has posted comments on this change. ( https://gerrit.osmocom.org/c/libgtpnl/+/26990 )
Change subject: fix some cases of rc == 0 on error ......................................................................
Patch Set 1:
(3 comments)
Patchset:
PS1:
it might be worth looking at how other code using libmnl is doing this. […]
it is clear that checking errno works well. just seems weird to me to return zero on some errors while others return nonzero.
PS1: I'm not sure that it is the right thing to submit this patch. I think it makes better code, but maybe not worthwhile to change a running system. I submitted this patch mainly to let review decide whether it is any good.
File src/gtp-genl.c:
https://gerrit.osmocom.org/c/libgtpnl/+/26990/comment/e3535927_d8978396 PS1, Line 82: return -2;
or perhaps: […]
just above this bit of code, the code returns -1. I thought, return -1 as well vs return a different constant. So, arbitrarily, I picked the different constant, next after -1 is -2.
I'd also just return rc, but that seems not to be intended?