X-Git-Url: http://lists.indexdata.com/cgi-bin?a=blobdiff_plain;f=src%2Fclient.c;h=4f87d1f0ce954f8fd9e1645283d0a79bf885ab6d;hb=3ea2f6ca025f6888d3ef2af4fa1e342d84fe1725;hp=02419cebafb5193a591bfc5b112c63f7cb732e43;hpb=591409403d68258a245cf30de428da8d7d1f2046;p=pazpar2-moved-to-github.git diff --git a/src/client.c b/src/client.c index 02419ce..4f87d1f 100644 --- a/src/client.c +++ b/src/client.c @@ -1,4 +1,4 @@ -/* $Id: client.c,v 1.25 2007-09-20 09:22:37 adam Exp $ +/* $Id: client.c,v 1.26 2007-10-02 10:11:56 adam Exp $ Copyright (c) 2006-2007, Index Data. This file is part of Pazpar2. @@ -239,7 +239,13 @@ int client_show_raw_begin(struct client *cl, int position, size_t sz)) { if (cl->show_raw) + { /* raw show already in progress */ return -1; + } + if (!cl->connection) + { /* the client has no connection */ + return -2; + } cl->show_raw = xmalloc(sizeof(*cl->show_raw)); cl->show_raw->position = position; cl->show_raw->active = 0;