char *sep;
char buf[4];
- if (strcmp(name, "Status")) {
+ if (!strcmp(name, "Status")) {
sep = strchr(val, ' ');
if (sep != val + 3)
return;
buf[3] = 0;
snprintf(status_buf, sizeof(status_buf), "%s", sep + 1);
cl->dispatch.proc.status_msg = status_buf;
+ cl->dispatch.proc.status_code = atoi(buf);
return;
}