--- libaitrpc/src/builtin.c 2012/05/11 08:46:41 1.6.4.1 +++ libaitrpc/src/builtin.c 2012/05/11 08:49:43 1.6.4.2 @@ -3,7 +3,7 @@ * by Michael Pounov * * $Author: misho $ -* $Id: builtin.c,v 1.6.4.1 2012/05/11 08:46:41 misho Exp $ +* $Id: builtin.c,v 1.6.4.2 2012/05/11 08:49:43 misho Exp $ * ************************************************************************** The ELWIX and AITNET software is distributed under the following @@ -234,19 +234,16 @@ rpcBLOBServerVars(rpc_func_t *call, int ic, array_t *i return 1; } - pthread_mutex_lock(&srv->srv_blob.mtx); for (i = 0, b = srv->srv_blob.blobs; b; i++, b = b->blob_next); len = i * sizeof str; if (!len) { AIT_SET_STR(io_array(vals, 0, ait_val_t*), ""); - pthread_mutex_unlock(&srv->srv_blob.mtx); return 0; } if (!(val = malloc(len))) { LOGERR; - pthread_mutex_unlock(&srv->srv_blob.mtx); return -1; } else memset(val, 0, len); @@ -259,7 +256,6 @@ rpcBLOBServerVars(rpc_func_t *call, int ic, array_t *i AIT_SET_STR(io_array(vals, 0, ait_val_t*), val); free(val); - pthread_mutex_unlock(&srv->srv_blob.mtx); return 0; }