[PATCH] obj: Fix dereference before NULL check
Thomas Haller
thaller at redhat.com
Mon Jun 9 03:08:55 PDT 2014
On Tue, 2014-06-03 at 10:47 +0200, Tobias Klauser wrote:
> The check for !obj indicates that obj might be NULL, thus move the call
> to obj_ops(obj) - which dereferences obj - after the check.
>
> Signed-off-by: Tobias Klauser <tklauser at distanz.ch>
> ---
> lib/object.c | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
hi,
merged as:
https://github.com/thom311/libnl/commit/1087eb53144cb34e20f82595187ce70853fe4cd9
Thanks,
Thomas
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part
URL: <http://lists.infradead.org/pipermail/libnl/attachments/20140609/567c19ee/attachment.sig>
More information about the libnl
mailing list