Hi Andreas,
Am Freitag, 1. August 2014, 09:07:20 schrieb Fuchs, Andreas:
> Hi Peter,
> 
> I looked at src/tcsd/tcsd_threads.c real quick...
> 
> @Peter: Would you mind commenting out line 167:
> "tm->thread_data[thread_num].hostname = NULL;" and see if this helps ?
> Since thread_num == -1 in the error-case you describe this should go
> wrong... ;-)
> 
> @Vicky: would you mind guaring line 167 with the following in any case
> (even if it is not what triggered Peter's error) ? if (hostname != NULL) {
> +             if (thread_num != -1)
> +                     tm->thread_data[thread_num].hostname = NULL;
> -             tm->thread_data[thread_num].hostname = NULL;
>               free(hostname);

Seems to work ;)
Reported-by: Peter Huewe <[email protected]>
Tested-by: Peter Huewe <[email protected]>

Thanks,

Peter

------------------------------------------------------------------------------
Want fast and easy access to all the code in your enterprise? Index and
search up to 200,000 lines of code with a free copy of Black Duck
Code Sight - the same software that powers the world's largest code
search on Ohloh, the Black Duck Open Hub! Try it now.
http://p.sf.net/sfu/bds
_______________________________________________
TrouSerS-tech mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/trousers-tech

Reply via email to