Update to the new SEL reservation check

The interface to check SEL reservation IDs changed in
openbmc/phosphor-host-ipmid, commit
13e67c8d43064d58fb8c4cc7757abb823e3ac51e.  This commit updates
to use the new interface to check the SEL Rserveration ID.

Change-Id: I8151b13a927729efd88b4aec061c81ed7ba086ba
Signed-off-by: Jason M. Bills <jason.m.bills@linux.intel.com>
diff --git a/oemhandler.cpp b/oemhandler.cpp
index 99081d7..c793941 100644
--- a/oemhandler.cpp
+++ b/oemhandler.cpp
@@ -95,12 +95,10 @@
 	esel_req.offset    = le16toh((((uint16_t) reqptr[5]) << 8) + reqptr[4]);
 	esel_req.progress  = reqptr[6];
 
-	uint16_t used_res_id = get_sel_reserve_id();
-
 	// According to IPMI spec, Reservation ID must be checked.
-	if ( used_res_id != esel_req.resid ) {
+	if ( !checkSELReservation(esel_req.resid) ) {
 		// 0xc5 means Reservation Cancelled or Invalid Reservation ID.
-		printf("Used Reservation ID = %d\n", used_res_id);
+		printf("Used Reservation ID = %d\n", esel_req.resid);
 		rc = IPMI_CC_INVALID_RESERVATION_ID;
 
 		// clean g_esel_path.