Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
librbd/internal.cc: check earlier for null pointer
Fix potential null ponter deref, move check for 'order != NULL' to the beginning of the function to prevent a) deref in ldout() call and b) to leave function as early as possible if check fails. [src/librbd/internal.cc:843] -> [src/librbd/internal.cc:865]: (warning) Possible null pointer dereference: order - otherwise it is redundant to check it against null. Signed-off-by: Danny Al-Gaaf <[email protected]>
- Loading branch information