X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/d20cac6971c9e649cc88e6533e7fa1367e488e14..6218e611276b20b9154bc61eaaf93d9ac0c75d92:/uip/popsbr.c diff --git a/uip/popsbr.c b/uip/popsbr.c index 54fd24ff..8d2cf9d7 100644 --- a/uip/popsbr.c +++ b/uip/popsbr.c @@ -434,7 +434,7 @@ pop_sasl_callback(enum sasl_message_type mtype, unsigned const char *indata, if (line == NULL) return NOTOK; - if (strncmp(line, "+OK", 3) != 0) { + if (!HasPrefix(line, "+OK")) { netsec_err(errstr, "Authentication failed: %s", line); return NOTOK; } @@ -690,7 +690,7 @@ multiline (void) if (pop_getline (buffer, sizeof buffer, nsc) != OK) return NOTOK; - if (strncmp (buffer, TRM, TRMLEN) == 0) { + if (HasPrefix(buffer, TRM)) { if (buffer[TRMLEN] == 0) return DONE; strncpy (response, buffer + TRMLEN, sizeof(response));