[sheepdog] [PATCH v7 6/6] sheep: add a cluster driver for shepherd

Hitoshi Mitake mitake.hitoshi at gmail.com
Mon Mar 11 08:56:40 CET 2013


At Mon, 11 Mar 2013 15:28:59 +0900,
MORITA Kazutaka wrote:
> 
> At Mon, 11 Mar 2013 12:48:58 +0900,
> Hitoshi Mitake wrote:
> > 
> > +
> > +static int shepherd_init(const char *option)
> > +{
> > +	int ret, port;
> > +	char *copied, *s_addr, *s_port, *saveptr;
> > +
> > +	copied = strdup(option);
> 
> This leads to a segfault if option is NULL.
> 

Sorry, I'll add a handler code for option == NULL in the next series.

Thanks,
Hitoshi



More information about the sheepdog mailing list