fixed null pointer into options and ssh_set_error()

git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@138 7dcaeef0-15fb-0310-b436-a5af3365683c
This commit is contained in:
Aris Adamantiadis
2008-03-04 04:25:48 +00:00
parent 077dd81fcc
commit 77743b75f4
3 changed files with 18 additions and 16 deletions

View File

@@ -379,8 +379,10 @@ int main(int argc, char **argv){
unsigned char hash[MD5_DIGEST_LEN];
options=ssh_options_new();
if(ssh_options_getopt(options,&argc, argv))
usage();
if(ssh_options_getopt(options,&argc, argv)){
fprintf(stderr,"error parsing command line :%s\n",ssh_get_error(options));
usage();
}
opts(argc,argv);
signal(SIGTERM,do_exit);
if(user)