Commit ff40c030 authored by Per Cederqvist's avatar Per Cederqvist
Browse files

(get_membership_old): Call CHK_BOOL for want_read_texts.

(get_membership_10): Ditto.
(get_membership): Call CHK_BOOL for want_read_ranges.
parent 201127db
/*
* $Id: membership.c,v 0.93 2003/08/20 17:40:18 ceder Exp $
* $Id: membership.c,v 0.94 2003/08/23 15:13:55 ceder Exp $
* Copyright (C) 1991-2002 Lysator Academic Computer Association.
*
* This file is part of the LysKOM server.
......@@ -1864,14 +1864,15 @@ do_get_membership(Pers_no pers_no,
extern Success
get_membership_old (Pers_no pers_no,
unsigned short first,
unsigned short no_of_confs,
Bool want_read_texts,
unsigned short first,
unsigned short no_of_confs,
Bool want_read_texts,
Membership_list * memberships )
{
Success result;
long i;
CHK_BOOL(want_read_texts, FAILURE);
/* CHK_CONNECTION in do_get_membership */
result = do_get_membership (pers_no,
......@@ -1905,6 +1906,8 @@ get_membership_10(Pers_no pers_no,
Bool want_read_texts,
Membership_list *memberships)
{
CHK_BOOL(want_read_texts, FAILURE);
/* CHK_CONNECTION in do_get_membership */
return do_get_membership (pers_no,
first,
......@@ -1923,6 +1926,8 @@ get_membership(Pers_no pers_no,
unsigned long max_ranges,
Membership_list * memberships)
{
CHK_BOOL(want_read_ranges, FAILURE);
/* CHK_CONNECTION in do_get_membership */
return do_get_membership (pers_no,
first,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment