This is currently not used though.
unsigned int timeout_msecs;
+ pid_t auth_server_pid;
+
bool connected:1;
bool sent_handshake:1;
bool aborted:1;
auth_request_lookup_abort(conn);
return -1;
}
- } else if (strcmp(tmp[0], "SPID") == 0) {
- return 1;
+ return 0;
+ } else if (strcmp(tmp[0], "SPID") != 0) {
+ return 0;
}
- return 0;
+
+ if (str_to_pid(tmp[1], &conn->auth_server_pid) < 0) {
+ e_error(conn->event,
+ "Authentication server sent invalid SPID: %s", line);
+ return -1;
+ }
+ return 1;
}
static int