summaryrefslogtreecommitdiff
path: root/src/responder
diff options
context:
space:
mode:
authorStephen Gallagher <sgallagh@redhat.com>2012-02-13 09:02:19 -0500
committerStephen Gallagher <sgallagh@redhat.com>2012-02-13 11:54:53 -0500
commitd57dd0667b97a47b8db36d1ff6a28ae57d512f53 (patch)
treeb20cb4dca8a4a1f0abc1bc2e67af59d5c62788e3 /src/responder
parent50fcb0f65eea9bfb4906d55f5ea5f7e570379b1a (diff)
downloadsssd-d57dd0667b97a47b8db36d1ff6a28ae57d512f53.tar.gz
sssd-d57dd0667b97a47b8db36d1ff6a28ae57d512f53.tar.bz2
sssd-d57dd0667b97a47b8db36d1ff6a28ae57d512f53.zip
Check for failure in sss_packet_grow()
Coverity #12489
Diffstat (limited to 'src/responder')
-rw-r--r--src/responder/nss/nsssrv_services.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/responder/nss/nsssrv_services.c b/src/responder/nss/nsssrv_services.c
index 38754ff0..2f2a25c2 100644
--- a/src/responder/nss/nsssrv_services.c
+++ b/src/responder/nss/nsssrv_services.c
@@ -33,8 +33,8 @@
#include "db/sysdb_services.h"
struct getserv_ctx {
- struct tevent_context *ev;
uint16_t port;
+ struct tevent_context *ev;
struct nss_dom_ctx *dctx;
struct sss_domain_info **domains;
@@ -681,10 +681,10 @@ fill_service(struct sss_packet *packet,
}
to_sized_string(&cased_proto, tmpstr);
- sss_packet_grow(packet, 2 * sizeof(uint16_t)
- + sizeof(uint32_t)
- + cased_name.len
- + cased_proto.len);
+ ret = sss_packet_grow(packet, 2 * sizeof(uint16_t)
+ + sizeof(uint32_t)
+ + cased_name.len
+ + cased_proto.len);
if (ret != EOK) {
num = 0;
goto done;