From: Ben Gras Date: Thu, 19 Feb 2009 17:14:36 +0000 (+0000) Subject: only assign value if request went ok. X-Git-Tag: v3.1.4~103 X-Git-Url: http://zhaoyanbai.com/repos/%22http:/www.isc.org/icons/doc/syslog.conf.5.html?a=commitdiff_plain;h=a742aed5ad1ed9bf8606df9cfffde56bf872bd09;p=minix.git only assign value if request went ok. --- diff --git a/lib/syslib/ds.c b/lib/syslib/ds.c index 833fd943e..d647c41d5 100644 --- a/lib/syslib/ds.c +++ b/lib/syslib/ds.c @@ -131,8 +131,10 @@ u32_t *value; cpf_revoke(g_key); - /* Assign u32 value. */ - *value = m.DS_VAL; + if(r == OK) { + /* Assign u32 value. */ + *value = m.DS_VAL; + } return r; }