diff -c -r inn-2.3.1/nnrpd/post.c inn-2.3.1-modified/nnrpd/post.c *** inn-2.3.1/nnrpd/post.c Mon Aug 21 02:14:43 2000 --- inn-2.3.1-modified/nnrpd/post.c Fri Jan 19 16:44:13 2001 *************** *** 360,380 **** /* If authorized and we didn't get a sender, add the header based on * our info. If not authorized, zap the Sender so we don't put out * unauthenticated data. */ ! if (PERMauthorized && HDR(_sender) == NULL) { if (PERMuser[0] == '\0') { (void)sprintf(sendbuff, "%s@%s", "UNKNOWN", ClientHost); } else { if ((p = strchr(PERMuser, '@')) == NULL) { (void)sprintf(sendbuff, "%s@%s", PERMuser, ClientHost); } else { ! *p = '\0'; ! (void)sprintf(sendbuff, "%s@%s", PERMuser, ClientHost); ! *p = '@'; } } HDR(_sender) = sendbuff; } ! else if (!PERMauthorized) HDR(_sender) = NULL; } --- 360,378 ---- /* If authorized and we didn't get a sender, add the header based on * our info. If not authorized, zap the Sender so we don't put out * unauthenticated data. */ ! if (PERMauthorized) { if (PERMuser[0] == '\0') { (void)sprintf(sendbuff, "%s@%s", "UNKNOWN", ClientHost); } else { if ((p = strchr(PERMuser, '@')) == NULL) { (void)sprintf(sendbuff, "%s@%s", PERMuser, ClientHost); } else { ! (void)sprintf(sendbuff, "%s", PERMuser); } } HDR(_sender) = sendbuff; } ! else /* if (!PERMauthorized) */ HDR(_sender) = NULL; }