Commit 1799e35d 1799e35dd93c0dd76533da9b5377539e6dab13eb by Alain Magloire

* mailbox2/header.c(header_aget_value): Base on discussion with Sergey

	if the call fails no memory should be allocated and the return status
	should be return i.e. status != 0.

	* sieve/Makefile.am: To EXTRA_DIST add md5-rsa.{c,h}.
1 parent 5ec65915
2001-08-24 Alain Magloire
* sieve/Makefile.am: To EXTRA_DIST add md5-rsa.{c,h}.
* mailbox2/header.c(header_aget_value): Base on discussion with Sergey
if the call fails no memory should be allocated and the return status
should be return i.e. status != 0.
2001-08-23 Sergey Poznyakoff
* mail/msgset.y: Fixed erroneous call to msgset_select
......@@ -3042,4 +3050,4 @@
1999-09-10 Jeff Bailey
* */*: Accomidate directory rearrange
......
......@@ -102,16 +102,9 @@ header_aget_value (header_t header, const char *name, char **pvalue)
if (value == NULL)
return MU_ERROR_NO_MEMORY;
header_get_value (header, name, value, n + 1, NULL);
*pvalue = value;
}
else
{
value = malloc (1);
if (value == NULL)
return MU_ERROR_NO_MEMORY;
*value = '\0';
}
*pvalue = value;
return 0;
return status;
}
int
......@@ -145,16 +138,9 @@ header_aget_field_name (header_t header, size_t num, char **pvalue)
if (value == NULL)
return MU_ERROR_NO_MEMORY;
header_get_field_name (header, num, value, n + 1, NULL);
*pvalue = value;
}
else
{
value = malloc (1);
if (value == NULL)
return MU_ERROR_NO_MEMORY;
*value = '\0';
}
*pvalue = value;
return 0;
return status;
}
int
......@@ -179,15 +165,8 @@ header_aget_field_value (header_t header, size_t num, char **pvalue)
if (value == NULL)
return MU_ERROR_NO_MEMORY;
header_get_field_value (header, num, value, n + 1, NULL);
*pvalue = value;
}
else
{
value = malloc (1);
if (value == NULL)
return MU_ERROR_NO_MEMORY;
*value = '\0';
}
*pvalue = value;
return status;
}
......
......@@ -15,7 +15,7 @@ DISTCLEANFILES=
MAINTAINERCLEANFILES=$(BUILT_SOURCES)
EXTRA_DIST = \
$(BUILT_SOURCES) \
addr-lex.l addr.y gram-sieve.y sieve-gram.y sieve-lex.l
addr-lex.l addr.y gram-sieve.y sieve-gram.y sieve-lex.l md5-rsa.h
bin_PROGRAMS = sieve
......@@ -26,6 +26,7 @@ SRC = \
imparse.c \
interp.c \
message.c \
md5-rsa.c \
parseaddr.c \
script.c \
sieve-lex.c \
......