]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Validate greeting from pipe caller
authorJosh Soref <2119212+jsoref@users.noreply.github.com>
Thu, 13 Nov 2025 15:22:54 +0000 (10:22 -0500)
committerJosh Soref <2119212+jsoref@users.noreply.github.com>
Thu, 13 Nov 2025 15:22:54 +0000 (10:22 -0500)
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
regression-tests.nobackend/negcache-tests-dotted-cname/pipe.py

index 06c50bcfdce48ec331348020970619b23feb835c..091427a4ecec7686df456d952d45e0f899cf4aab 100755 (executable)
@@ -3,6 +3,9 @@
 import sys
 
 line = sys.stdin.readline()
+items = line.split('\t')
+if (items[0] != 'HELO'):
+    print('LOG\tGot unexpected greeting\t%s' % line)
 # TOLO
 print('OK\tTest backend firing up')