From 7cac267a4bd67288eceb8e12dd5d4c66673305db Mon Sep 17 00:00:00 2001 From: Michael Davidsaver Date: Thu, 11 Oct 2012 18:10:00 -0500 Subject: [PATCH] db: Fix possible error handling in dbPut --- src/db/dbAccess.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/db/dbAccess.c b/src/db/dbAccess.c index 22f4e20e7..94f8a1b79 100644 --- a/src/db/dbAccess.c +++ b/src/db/dbAccess.c @@ -1442,8 +1442,9 @@ long epicsShareAPI dbPut(DBADDR *paddr, short dbrType, else offset = 0; if (no_elements < nRequest) nRequest = no_elements; - status = dbPutConvertRoutine[dbrType][field_type](paddr, pbuffer, - nRequest, no_elements, offset); + if (!status) + status = dbPutConvertRoutine[dbrType][field_type](paddr, pbuffer, + nRequest, no_elements, offset); /* update array info */ if (!status &&