summaryrefslogtreecommitdiffstats
path: root/src/map.c
diff options
context:
space:
mode:
authorNalin Dahyabhai <nalin@redhat.com>2011-01-03 14:13:47 -0500
committerNalin Dahyabhai <nalin@redhat.com>2011-01-03 14:13:47 -0500
commit6be7c2788d6c5688a7c3703828fc6f093f0c9c05 (patch)
treefcc4976fddee6c85a5e26b4eaf5851cf3d256821 /src/map.c
parent97f1410dacc66f735c95c4b2d49a99eea12e4333 (diff)
downloadslapi-nis-6be7c2788d6c5688a7c3703828fc6f093f0c9c05.tar.gz
slapi-nis-6be7c2788d6c5688a7c3703828fc6f093f0c9c05.tar.xz
slapi-nis-6be7c2788d6c5688a7c3703828fc6f093f0c9c05.zip
- don't deref a null pointer on out-of-memory here (defect #10093)
Diffstat (limited to 'src/map.c')
-rw-r--r--src/map.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/map.c b/src/map.c
index 95e643c..f91a36a 100644
--- a/src/map.c
+++ b/src/map.c
@@ -862,6 +862,9 @@ map_data_set_map(struct plugin_state *state,
/* XXX */
return;
}
+ } else {
+ /* XXX */
+ return;
}
}
/* Check if the map's already been defined in the domain. */
@@ -903,6 +906,9 @@ map_data_set_map(struct plugin_state *state,
/* XXX */
return;
}
+ } else {
+ /* XXX */
+ return;
}
} else {
/* There's already a map there, we just need to update the