aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/libssh/callbacks.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/libssh/callbacks.h b/include/libssh/callbacks.h
index 0e18b81f..65d78ce6 100644
--- a/include/libssh/callbacks.h
+++ b/include/libssh/callbacks.h
@@ -191,7 +191,7 @@ typedef struct ssh_socket_callbacks_struct *ssh_socket_callbacks;
* @returns nonzero if callback can be called
*/
#define ssh_callbacks_exists(p,c) (\
- (p) && ( (char *)&((p)-> c) < (char *)(p) + (p)->size ) && \
+ (p != NULL) && ( (char *)&((p)-> c) < (char *)(p) + (p)->size ) && \
((p)-> c != NULL) \
)