Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- static WERROR libnetapi_open_ipc_connection(
- struct libnetapi_ctx *ctx,
- const char *server_name,
- struct client_ipc_connection **pp)
- {
- struct libnetapi_private_ctx *priv_ctx =
- (struct libnetapi_private_ctx *)ctx->private_data;
- struct user_auth_info *auth_info = NULL;
- struct cli_state *cli_ipc = NULL;
- struct client_ipc_connection *p;
- if (!ctx || !pp || !server_name) {
- return WERR_INVALID_PARAM;
- }
- ....
- }
- This suspicious code was found in samba project by PVS-Studio static code analyzer.
- Warning message is:
- V595 The 'ctx' pointer was utilized before it was verified against nullptr. Check lines: 67, 72. cm.c 67
- PVS-Studio is a static analyzer for detecting bugs in the source code of applications written in C, C++, C++11, C++/CX. Site: http://www.viva64.com/en/pvs-studio/
Advertisement
Add Comment
Please, Sign In to add comment