Topic: Coredump with --configtest

Bonjour,
J'ai un petit souci, lorsque j'exécute MySecureShell avec --config-test, j'obtient un segfault à la première variable STRING non définie dans le sftp_config (ici Shell) :

MySecureShell --configtest
--- root ---
GlobalDownload        = 51200 bytes/s
GlobalUpload          = 0 bytes/s
Download              = 5120 bytes/s
Upload                = 0 bytes/s
StayAtHome            = true
VirtualChroot         = true
LimitConnection       = 10
LimitConnectionByUser = 10
LimitConnectionByIP   = 10
Home                  = /home/root
Segmentation Fault(coredump)

dans le code :

conf.c
              if (ptr == NULL && confParams[i].show == CONF_SHOW_IF_NOT_NULL)
                (void )printf("{default}");
              else
                (void )printf("%s", ptr);

il semble que ptr soit NULL mais confParams[i].show != CONF_SHOW_IF_NOT_NULL
=> boom


JoK

Re: Coredump with --configtest

Mokay merci, c'est fixé big_smile