/*
This file is part of GNUnet.
- (C) 2009, 2010 Christian Grothoff (and other contributing authors)
+ Copyright (C) 2009, 2010 Christian Grothoff (and other contributing authors)
GNUnet is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published
static int
check (struct SplittedHTTPAddress *addr,
- char * protocol,
- char * host,
+ const char *protocol,
+ const char *host,
int port,
- char * path)
+ const char *path)
{
if (NULL == addr)
return GNUNET_NO;
if (NULL != spa)
{
clean (spa);
+ spa = NULL;
GNUNET_break (0);
}
- http_split_address ("http://");
+ spa = http_split_address ("http://");
if (NULL != spa)
{
clean (spa);
GNUNET_break (0);
}
- http_split_address ("://");
+ spa = http_split_address ("://");
if (NULL != spa)
{
clean (spa);