This means that if we get two duplicate stops, the second one will
cause the server to complain. Previously, the server *may* have
complained, but not necessarily...
u.nas_port != ut.nas_port)
continue;
+ /*
+ * Don't compare stop records to unused entries.
+ */
+ if (status == PW_STATUS_STOP &&
+ u.type == P_IDLE) {
+ continue;
+ }
+
if (status == PW_STATUS_STOP &&
strncmp(ut.session_id, u.session_id,
sizeof(u.session_id)) != 0) {