diff --git a/examples/sshd_direct-tcpip.c b/examples/sshd_direct-tcpip.c index 0346219c..18a870b9 100644 --- a/examples/sshd_direct-tcpip.c +++ b/examples/sshd_direct-tcpip.c @@ -92,7 +92,7 @@ cleanup_push(struct cleanup_node_struct** head_ref, // Allocate memory for node struct cleanup_node_struct *new_node = malloc(sizeof *new_node); - if (head_ref != NULL) { + if (*head_ref != NULL) { new_node->next = *head_ref; } else { new_node->next = NULL;