diff options
-rw-r--r-- | libssh/dh.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libssh/dh.c b/libssh/dh.c index ad571dd9..39f468a7 100644 --- a/libssh/dh.c +++ b/libssh/dh.c @@ -591,6 +591,9 @@ static int match(char *group,char *object){ char *ptr,*saved; char *end; ptr=strdup(group); + if (ptr == NULL) { + return -1; + } saved=ptr; while(1){ end=strchr(ptr,','); |